[pypy-svn] r73961 - pypy/branch/cpython-extension/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Thu Apr 22 12:59:38 CEST 2010


Author: afa
Date: Thu Apr 22 12:59:36 2010
New Revision: 73961

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/longobject.py
Log:
Really generate a void* for PyLong_FromVoidPtr.


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/longobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/longobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/longobject.py	Thu Apr 22 12:59:36 2010
@@ -66,7 +66,7 @@
         pend[0] = rffi.ptradd(str, len(s))
     return space.call_function(space.w_long, w_str, w_base)
 
- at cpython_api([rffi.VOIDP], PyObject)
+ at cpython_api([rffi.VOIDP_real], PyObject)
 def PyLong_FromVoidPtr(space, p):
     """Create a Python integer or long integer from the pointer p. The pointer value
     can be retrieved from the resulting value using PyLong_AsVoidPtr().



More information about the Pypy-commit mailing list