[pypy-svn] r76023 - pypy/trunk/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Thu Jul 8 15:15:57 CEST 2010
Author: fijal
Date: Thu Jul 8 15:15:55 2010
New Revision: 76023
Modified:
pypy/trunk/pypy/rlib/rarithmetic.py
Log:
don't do type(int) when we're translated
Modified: pypy/trunk/pypy/rlib/rarithmetic.py
==============================================================================
--- pypy/trunk/pypy/rlib/rarithmetic.py (original)
+++ pypy/trunk/pypy/rlib/rarithmetic.py Thu Jul 8 15:15:55 2010
@@ -118,7 +118,7 @@
result = int(int(x)) # -2147483648.0 => -2147483648L => -2147483648
except (OverflowError, ValueError): # ValueError for int(nan) on Py>=2.6
raise OverflowError
- if type(result) is not int:
+ if not objectmodel.we_are_translated() and type(result) is not int:
raise OverflowError
return result
More information about the Pypy-commit
mailing list