[pypy-svn] r65068 - pypy/branch/pyjitpl5/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Tue May 5 19:39:06 CEST 2009


Author: fijal
Date: Tue May  5 19:39:05 2009
New Revision: 65068

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
Log:
A tiny check in that prevents overflow error from being constant folded
into int at set_overflow_error. This at least should prevent some
segfaults when translated.


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	Tue May  5 19:39:05 2009
@@ -574,7 +574,7 @@
 
     @staticmethod
     def cast_adr_to_int(x):
-        res = ll2ctypes.cast_adr_to_int(x)
+        res = rffi.cast(lltype.Signed, x)
         return res
 
     @staticmethod



More information about the Pypy-commit mailing list