Author: Armin Rigo <[email protected]>
Branch:
Changeset: r85388:507eee5b4548
Date: 2016-06-26 22:15 +0200
http://bitbucket.org/pypy/pypy/changeset/507eee5b4548/
Log: Fix
diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -1838,7 +1838,7 @@
rem = (rem << SHIFT) | pin.widedigit(size)
hi = llop.long2_floordiv(lltype.Signed, rem, n)
pout.setdigit(size, hi)
- rem -= hi * n
+ rem -= _widen_digit(hi) * n
size -= 1
return rffi.cast(lltype.Signed, rem)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit