[pypy-commit] pypy default: I think this is enough to make translation work on 32bit

fijal noreply at buildbot.pypy.org
Sun Mar 18 09:52:54 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r53781:b31241d6554d
Date: 2012-03-18 10:52 +0200
http://bitbucket.org/pypy/pypy/changeset/b31241d6554d/

Log:	I think this is enough to make translation work on 32bit

diff --git a/pypy/objspace/flow/model.py b/pypy/objspace/flow/model.py
--- a/pypy/objspace/flow/model.py
+++ b/pypy/objspace/flow/model.py
@@ -8,7 +8,7 @@
 from pypy.tool.descriptor import roproperty
 from pypy.tool.sourcetools import PY_IDENTIFIER, nice_repr_for_func
 from pypy.tool.identity_dict import identity_dict
-from pypy.rlib.rarithmetic import is_valid_int
+from pypy.rlib.rarithmetic import is_valid_int, r_longlong, r_ulonglong
 
 
 """
@@ -546,6 +546,8 @@
                     for n in cases[:len(cases)-has_default]:
                         if is_valid_int(n):
                             continue
+                        if isinstance(n, (r_longlong, r_ulonglong)):
+                            continue
                         if isinstance(n, (str, unicode)) and len(n) == 1:
                             continue
                         assert n != 'default', (


More information about the pypy-commit mailing list