[pypy-commit] pypy win64_gborg: fixed rbigint
ctismer
noreply at buildbot.pypy.org
Wed Nov 9 21:23:27 CET 2011
Author: Christian Tismer <tismer at stackless.com>
Branch: win64_gborg
Changeset: r49059:8ac04a128037
Date: 2011-11-09 21:23 +0100
http://bitbucket.org/pypy/pypy/changeset/8ac04a128037/
Log: fixed rbigint
diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -45,7 +45,7 @@
def _mask_digit(x):
if not we_are_translated():
- assert type(x) is not long, "overflow occurred!"
+ assert is_valid_int(x>>1), "overflow occurred!"
return intmask(x & MASK)
_mask_digit._annspecialcase_ = 'specialize:argtype(0)'
More information about the pypy-commit
mailing list