[pypy-commit] pypy arm-backend-2: (stepahn, bivab): Fix decoding of guard description. Missed a cast before checking the bytecodes

bivab noreply at buildbot.pypy.org
Thu Jan 12 15:32:12 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r51277:33e8a892e86f
Date: 2012-01-12 15:28 +0100
http://bitbucket.org/pypy/pypy/changeset/33e8a892e86f/

Log:	(stepahn, bivab): Fix decoding of guard description. Missed a cast
	before checking the bytecodes

diff --git a/pypy/jit/backend/arm/assembler.py b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -184,7 +184,7 @@
         fvalue = 0
         code_inputarg = False
         while True:
-            code = bytecode[0]
+            code = rffi.cast(lltype.Signed, bytecode[0])
             bytecode = rffi.ptradd(bytecode, 1)
             if code >= self.CODE_FROMSTACK:
                 if code > 0x7F:


More information about the pypy-commit mailing list