Author: Armin Rigo <ar...@tunes.org> Branch: stmgc-c7 Changeset: r70309:1f5cf3792b5d Date: 2014-03-27 16:37 +0100 http://bitbucket.org/pypy/pypy/changeset/1f5cf3792b5d/
Log: Fix: must not use cast_ptr_to_int() here diff --git a/rpython/jit/metainterp/compile.py b/rpython/jit/metainterp/compile.py --- a/rpython/jit/metainterp/compile.py +++ b/rpython/jit/metainterp/compile.py @@ -1,5 +1,6 @@ import weakref from rpython.rtyper.lltypesystem import lltype, llmemory +from rpython.rtyper.lltypesystem.lloperation import llop from rpython.rtyper.annlowlevel import cast_instance_to_gcref from rpython.rlib.objectmodel import we_are_translated from rpython.rlib.debug import debug_start, debug_stop, debug_print @@ -593,7 +594,7 @@ intval = metainterp_sd.cpu.get_int_value(deadframe, index) elif typetag == self.TY_REF: refval = metainterp_sd.cpu.get_ref_value(deadframe, index) - intval = lltype.cast_ptr_to_int(refval) + intval = llop.cast_current_ptr_to_int(lltype.Signed, refval) elif typetag == self.TY_FLOAT: floatval = metainterp_sd.cpu.get_float_value(deadframe, index) intval = longlong.gethash_fast(floatval) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit