[pypy-commit] pypy default: Temporarily ensure again that "in the normal case" intmask()

arigo noreply at buildbot.pypy.org
Tue Mar 13 23:46:57 CET 2012


Author: Armin Rigo <arigo at tunes.org>
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))


More information about the pypy-commit mailing list