Skip to content

Commit

Permalink
Merge remote branch 'trunk' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
tav committed Jul 8, 2010
2 parents c38b074 + 62bbf83 commit 2115087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypy/rlib/rarithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def ovfcheck_float_to_int(x):
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

Expand Down

0 comments on commit 2115087

Please sign in to comment.