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

fijal at codespeak.net fijal at codespeak.net
Mon Jan 19 18:14:47 CET 2009


Author: fijal
Date: Mon Jan 19 18:14:47 2009
New Revision: 61137

Modified:
   pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
a missing cast


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:14:47 2009
@@ -930,6 +930,9 @@
     def _cast_to_int(self):
         return self.intval
 
+    def _cast_to_adr(self):
+        return _lladdress(ctypes.c_void_p(self.intval))
+
 def cast_adr_to_int(addr):
     if isinstance(addr, llmemory.fakeaddress):
         # use ll2ctypes to obtain a real ctypes-based representation of



More information about the Pypy-commit mailing list