[pypy-svn] r35693 - pypy/dist/pypy/rlib
pedronis at codespeak.net
pedronis at codespeak.net
Wed Dec 13 19:38:32 CET 2006
Author: pedronis
Date: Wed Dec 13 19:38:26 2006
New Revision: 35693
Modified:
pypy/dist/pypy/rlib/rarithmetic.py
Log:
forgot to check this in :(
Modified: pypy/dist/pypy/rlib/rarithmetic.py
==============================================================================
--- pypy/dist/pypy/rlib/rarithmetic.py (original)
+++ pypy/dist/pypy/rlib/rarithmetic.py Wed Dec 13 19:38:26 2006
@@ -66,7 +66,7 @@
# to be used as ovfcheck(x <op> y)
# raise OverflowError if the operation did overflow
assert not isinstance(r, r_uint), "unexpected ovf check on unsigned"
- if isinstance(r, long):
+ if type(r) is long:
raise OverflowError, "signed integer expression did overflow"
return r
More information about the Pypy-commit
mailing list