Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56167:7462374e4379
Date: 2012-07-18 17:03 +0200
http://bitbucket.org/pypy/pypy/changeset/7462374e4379/

Log:    and another one

diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -1225,6 +1225,8 @@
     assert size_v >= size_w and size_w > 1 # Assert checks by div()
 
     size_a = size_v - size_w + 1
+    if size_a < 0:
+        size_a = 0
     a = rbigint([NULLDIGIT] * size_a, 1)
 
     j = size_v
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to