[pypy-svn] pypy default: Fix this call to ovfcheck(). I know RPython is not completely obvious.
arigo
commits-noreply at bitbucket.org
Sun Feb 6 13:48:04 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r41651:8924cbf5038e
Date: 2011-02-06 10:47 +0100
http://bitbucket.org/pypy/pypy/changeset/8924cbf5038e/
Log: Fix this call to ovfcheck(). I know RPython is not completely
obvious.
diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -576,7 +576,7 @@
][msd]
# yes, this can overflow: a huge number which fits 3 gigabytes of
# memory has around 24 gigabits!
- bits = ovfcheck((i-1) * SHIFT + msd_bits)
+ bits = ovfcheck((i-1) * SHIFT) + msd_bits
return bits
def __repr__(self):
More information about the Pypy-commit
mailing list