[pypy-svn] r61068 - pypy/branch/oo-jit/pypy/rpython/lltypesystem
fijal at codespeak.net
fijal at codespeak.net
Sat Jan 17 17:56:54 CET 2009
Author: fijal
Date: Sat Jan 17 17:56:54 2009
New Revision: 61068
Modified:
pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
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 Sat Jan 17 17:56:54 2009
@@ -927,6 +927,9 @@
def _cast_to_ptr(self, PTRTYPE):
return force_cast(PTRTYPE, self.intval)
+ def _cast_to_int(self):
+ return 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