Author: stian
Branch: math-improvements
Changeset: r92798:114b6da85abb
Date: 2017-10-19 12:05 +0200
http://bitbucket.org/pypy/pypy/changeset/114b6da85abb/
Log: Cleanup functio
diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -931,16 +931,12 @@
# Just fallback.
return v.divmod(rbigint.fromint(w))
-
digit = abs(w)
assert digit > 0
div, mod = _divrem1(v, digit)
-
div.sign = v.sign * wsign
-
-
if v.sign != wsign:
if div.sign == 0:
div = NEGATIVERBIGINT
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit