[pypy-commit] pypy default: Translation fix.

arigo noreply at buildbot.pypy.org
Thu Mar 15 02:49:27 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r53638:bec33387d591
Date: 2012-03-14 18:45 -0700
http://bitbucket.org/pypy/pypy/changeset/bec33387d591/

Log:	Translation fix.

diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -6,7 +6,7 @@
 from pypy.objspace.std.noneobject import W_NoneObject
 from pypy.objspace.std.register_all import register_all
 from pypy.rlib import jit
-from pypy.rlib.rarithmetic import ovfcheck, LONG_BIT, r_uint
+from pypy.rlib.rarithmetic import ovfcheck, LONG_BIT, r_uint, is_valid_int
 from pypy.rlib.rbigint import rbigint
 
 """
@@ -42,7 +42,7 @@
     from pypy.objspace.std.inttype import int_typedef as typedef
 
     def __init__(w_self, intval):
-        assert type(intval) is int or type(intval) is long
+        assert is_valid_int(intval)
         w_self.intval = intval
 
     def __repr__(w_self):


More information about the pypy-commit mailing list