[pypy-svn] r61139 - pypy/branch/oo-jit/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Mon Jan 19 18:17:40 CET 2009


Author: fijal
Date: Mon Jan 19 18:17:39 2009
New Revision: 61139

Modified:
   pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
keepalive issue


Modified: pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py	Mon Jan 19 18:17:39 2009
@@ -937,10 +937,7 @@
         if addr.ptr is None:
             res = 0
         else:
-            c = lltype2ctypes(addr.ptr)
-            c = ctypes.cast(c, ctypes.c_void_p)
-            assert c.value
-            res = c.value
+            res = force_cast(lltype.Signed, addr.ptr)
     else:
         res = addr._cast_to_int()
     if res > sys.maxint:



More information about the Pypy-commit mailing list