Author: Christian Tismer <[email protected]>
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)'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit