Author: Stian Andreassen
Branch: improve-rbigint
Changeset: r56406:1a5e9ccdcaf6
Date: 2012-07-23 11:57 +0200
http://bitbucket.org/pypy/pypy/changeset/1a5e9ccdcaf6/
Log: These cases only work when c = None, obviously
diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -593,9 +593,9 @@
if a.sign < 0:
a = a.mod(c)
- if b.sign == 0:
+ elif b.sign == 0:
return ONERBIGINT
- if a.sign == 0:
+ elif a.sign == 0:
return NULLRBIGINT
size_b = b.numdigits()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit