Author: fijal
Branch: jit-leaner-frontend
Changeset: r82948:8b0309662ba1
Date: 2016-03-10 20:53 +0200
http://bitbucket.org/pypy/pypy/changeset/8b0309662ba1/

Log:    fix the arithmetics

diff --git a/rpython/jit/metainterp/opencoder.py 
b/rpython/jit/metainterp/opencoder.py
--- a/rpython/jit/metainterp/opencoder.py
+++ b/rpython/jit/metainterp/opencoder.py
@@ -289,7 +289,7 @@
 
     def patch_position_to_current(self, p):
         prev = self._ops[p]
-        assert prev == rffi.cast(rffi.SHORT, -1)
+        assert rffi.cast(lltype.Signed, prev) == -1
         self._ops[p] = rffi.cast(rffi.SHORT, self._pos)
 
     def check_snapshot_jitcode_pc(self, jitcode, pc, resumedata_pos):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to