aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory/point_gfp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/numbertheory/point_gfp.cpp')
-rw-r--r--src/math/numbertheory/point_gfp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/numbertheory/point_gfp.cpp b/src/math/numbertheory/point_gfp.cpp
index 5da1959bc..8cb40270c 100644
--- a/src/math/numbertheory/point_gfp.cpp
+++ b/src/math/numbertheory/point_gfp.cpp
@@ -324,12 +324,12 @@ PointGFp operator*(const BigInt& scalar, const PointGFp& point)
while(bits_left >= window_size)
{
- size_t nibble = scalar.get_substring(bits_left - window_size,
- window_size);
-
for(size_t i = 0; i != window_size; ++i)
H.mult2(ws);
+ const u32bit nibble = scalar.get_substring(bits_left - window_size,
+ window_size);
+
if(nibble)
H.add(Ps[nibble-1], ws);