[pypy-commit] pypy default: merge
ctismer
noreply at buildbot.pypy.org
Tue Mar 13 23:39:31 CET 2012
Author: Christian Tismer <tismer at stackless.com>
Branch:
Changeset: r53505:54a8a27b1d13
Date: 2012-03-13 15:39 -0700
http://bitbucket.org/pypy/pypy/changeset/54a8a27b1d13/
Log: merge
diff --git a/pypy/jit/metainterp/history.py b/pypy/jit/metainterp/history.py
--- a/pypy/jit/metainterp/history.py
+++ b/pypy/jit/metainterp/history.py
@@ -4,7 +4,7 @@
from pypy.rpython.ootypesystem import ootype
from pypy.rlib.objectmodel import we_are_translated, Symbolic
from pypy.rlib.objectmodel import compute_unique_id
-from pypy.rlib.rarithmetic import r_int64
+from pypy.rlib.rarithmetic import r_int64, is_valid_int
from pypy.conftest import option
from pypy.jit.metainterp.resoperation import ResOperation, rop
@@ -213,7 +213,7 @@
def __init__(self, value):
if not we_are_translated():
- if isinstance(value, int):
+ if is_valid_int(value):
value = int(value) # bool -> int
else:
assert isinstance(value, Symbolic)
More information about the pypy-commit
mailing list