[pypy-commit] pypy py3k: Most integers are bigints in py3k

amauryfa noreply at buildbot.pypy.org
Fri Nov 9 22:20:31 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r58818:12c63be3b049
Date: 2012-11-09 21:21 +0000
http://bitbucket.org/pypy/pypy/changeset/12c63be3b049/

Log:	Most integers are bigints in py3k

diff --git a/pypy/module/_rawffi/interp_rawffi.py b/pypy/module/_rawffi/interp_rawffi.py
--- a/pypy/module/_rawffi/interp_rawffi.py
+++ b/pypy/module/_rawffi/interp_rawffi.py
@@ -302,10 +302,7 @@
         raise NotImplementedError("abstract base class")
 
 def unwrap_truncate_int(TP, space, w_arg):
-    if space.is_true(space.isinstance(w_arg, space.w_int)):
-        return rffi.cast(TP, space.int_w(w_arg))
-    else:
-        return rffi.cast(TP, space.bigint_w(w_arg).ulonglongmask())
+    return rffi.cast(TP, space.bigint_w(w_arg).ulonglongmask())
 unwrap_truncate_int._annspecialcase_ = 'specialize:arg(0)'
 
 def unwrap_value(space, push_func, add_arg, argdesc, letter, w_arg):


More information about the pypy-commit mailing list