Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56157:bfc7b7773c60
Date: 2012-07-18 15:54 +0200
http://bitbucket.org/pypy/pypy/changeset/bfc7b7773c60/

Log:    annotator is dumb :)

diff --git a/pypy/module/_random/interp_random.py 
b/pypy/module/_random/interp_random.py
--- a/pypy/module/_random/interp_random.py
+++ b/pypy/module/_random/interp_random.py
@@ -89,6 +89,7 @@
             strerror = space.wrap("number of bits must be greater than zero")
             raise OperationError(space.w_ValueError, strerror)
         bytes = ((k - 1) // 32 + 1) * 4
+        assert bytes >= 0
         bytesarray = [0] * bytes
         for i in range(0, bytes, 4):
             r = self._rnd.genrand32()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to