[pypy-commit] pypy virtual-arguments: first fix for the >= 0

fijal noreply at buildbot.pypy.org
Wed Jul 18 14:36:33 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56130:9f8c202f2d28
Date: 2012-07-18 14:36 +0200
http://bitbucket.org/pypy/pypy/changeset/9f8c202f2d28/

Log:	first fix for the >= 0

diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -1604,6 +1604,7 @@
         bits += 1
         i >>= 1
     i = 5 + len(prefix) + len(suffix) + (size_a*SHIFT + bits-1) // bits
+    assert i >= 0
     s = [chr(0)] * i
     p = i
     j = len(suffix)


More information about the pypy-commit mailing list