[pypy-commit] pypy stacklet: 64-bit fix.

arigo noreply at buildbot.pypy.org
Sat Aug 27 15:54:49 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: stacklet
Changeset: r46820:6bc300ac2026
Date: 2011-08-27 15:45 +0200
http://bitbucket.org/pypy/pypy/changeset/6bc300ac2026/

Log:	64-bit fix.

diff --git a/pypy/jit/backend/llsupport/gc.py b/pypy/jit/backend/llsupport/gc.py
--- a/pypy/jit/backend/llsupport/gc.py
+++ b/pypy/jit/backend/llsupport/gc.py
@@ -421,11 +421,11 @@
                     #
                     # 'callshape' points to the next INT of the callshape.
                     # If it's zero we are done with the JIT frame.
-                    while callshape[0] != 0:
+                    while rffi.cast(lltype.Signed, callshape[0]) != 0:
                         #
                         # Non-zero: it's an offset inside the JIT frame.
                         # Read it and increment 'callshape'.
-                        offset = callshape[0]
+                        offset = rffi.cast(lltype.Signed, callshape[0])
                         callshape = lltype.direct_ptradd(callshape, 1)
                         addr = llmemory.cast_int_to_adr(iself.frame_addr +
                                                         offset)


More information about the pypy-commit mailing list