diff options
author | lloyd <[email protected]> | 2007-11-16 04:34:22 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-11-16 04:34:22 +0000 |
commit | c697efd9bbb28e7c6f6afb3014fcced83598bb6f (patch) | |
tree | 1a5026fee55edb456f7b8b6b8a930028057252d0 /src | |
parent | eea881973fc97d1e3ccd4ce358229bd2459acb25 (diff) |
Mark start and end as const in karatsuba_size since they are never modified
after assignment.
Diffstat (limited to 'src')
-rw-r--r-- | src/mp_mul.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mp_mul.cpp b/src/mp_mul.cpp index 306ee642b..3c4248839 100644 --- a/src/mp_mul.cpp +++ b/src/mp_mul.cpp @@ -95,8 +95,8 @@ u32bit karatsuba_size(u32bit z_size, ((y_size == y_sw) && (y_size % 2))) return 0; - u32bit start = (x_sw > y_sw) ? x_sw : y_sw; - u32bit end = (x_size < y_size) ? x_size : y_size; + const u32bit start = (x_sw > y_sw) ? x_sw : y_sw; + const u32bit end = (x_size < y_size) ? x_size : y_size; if(start == end) { |