[pypy-svn] r72869 - pypy/branch/kill-asm-call/pypy/jit/backend/llsupport

fijal at codespeak.net fijal at codespeak.net
Fri Mar 26 02:16:43 CET 2010


Author: fijal
Date: Fri Mar 26 02:16:42 2010
New Revision: 72869

Modified:
   pypy/branch/kill-asm-call/pypy/jit/backend/llsupport/descr.py
Log:
Use rffi.cast here, it can be a non-gc object as well


Modified: pypy/branch/kill-asm-call/pypy/jit/backend/llsupport/descr.py
==============================================================================
--- pypy/branch/kill-asm-call/pypy/jit/backend/llsupport/descr.py	(original)
+++ pypy/branch/kill-asm-call/pypy/jit/backend/llsupport/descr.py	Fri Mar 26 02:16:42 2010
@@ -249,7 +249,7 @@
         elif self.returns_a_void():
             result = 'None'
         else:
-            result = 'history.BoxInt(lltype.cast_primitive(lltype.Signed, res))'
+            result = 'history.BoxInt(rffi.cast(lltype.Signed, res))'
         source = py.code.Source("""
         def call_stub(args):
             fnptr = rffi.cast(lltype.Ptr(FUNC), args[0].getint())



More information about the Pypy-commit mailing list