Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69640:b1c9eee30f4f
Date: 2014-03-03 05:47 -0500
http://bitbucket.org/pypy/pypy/changeset/b1c9eee30f4f/

Log:    fix translation for 32bit

diff --git a/rpython/rlib/rarithmetic.py b/rpython/rlib/rarithmetic.py
--- a/rpython/rlib/rarithmetic.py
+++ b/rpython/rlib/rarithmetic.py
@@ -149,7 +149,8 @@
         return False
     r_class = rffi.platform.numbertype_to_rclass[tp]
     assert issubclass(r_class, base_int)
-    return r_class.BITS < LONG_BIT
+    return r_class.BITS < LONG_BIT or (
+        r_class.BITS == LONG_BIT and r_class.SIGNED)
 _should_widen_type._annspecialcase_ = 'specialize:memo'
 
 # the replacement for sys.maxint
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to