aboutsummaryrefslogtreecommitdiffstats
path: root/src/divide.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/divide.cpp')
-rw-r--r--src/divide.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/divide.cpp b/src/divide.cpp
index 6df129911..bc1c9ef2d 100644
--- a/src/divide.cpp
+++ b/src/divide.cpp
@@ -63,7 +63,7 @@ void divide(const BigInt& x, const BigInt& y_arg, BigInt& q, BigInt& r)
q.get_reg().create(n - t + 1);
if(n <= t)
{
- while(r > y) { r -= y; q++; }
+ while(r > y) { r -= y; ++q; }
r >>= shifts;
sign_fixup(x, y_arg, q, r);
return;