diff options
author | lloyd <[email protected]> | 2007-03-03 23:46:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-03-03 23:46:18 +0000 |
commit | e4d501374fb23572727da8f01370fe9c1d803155 (patch) | |
tree | a8ab2c3312da13ed0f3a26a99d135937a92a7aa0 /src/divide.cpp | |
parent | 9c99db0f0f8e61bb43bf51282aaf71e01cc05aa2 (diff) |
Use prefix rather than postfix increment in places where it can be used.
Diffstat (limited to 'src/divide.cpp')
-rw-r--r-- | src/divide.cpp | 2 |
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; |