Author: Armin Rigo <[email protected]>
Branch:
Changeset: r53510:b38bebc32bb4
Date: 2012-03-13 15:46 -0700
http://bitbucket.org/pypy/pypy/changeset/b38bebc32bb4/
Log: Temporarily ensure again that "in the normal case" intmask() returns
an int.
diff --git a/pypy/rlib/rarithmetic.py b/pypy/rlib/rarithmetic.py
--- a/pypy/rlib/rarithmetic.py
+++ b/pypy/rlib/rarithmetic.py
@@ -103,7 +103,7 @@
n &= LONG_MASK
if n >= LONG_TEST:
n -= 2*LONG_TEST
- return n
+ return int(n)
def longlongmask(n):
assert isinstance(n, (int, long))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit