[pypy-svn] r74522 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Sun May 16 23:41:50 CEST 2010


Author: afa
Date: Sun May 16 23:41:48 2010
New Revision: 74522

Modified:
   pypy/trunk/pypy/module/cpyext/api.py
Log:
Use the dedicated function


Modified: pypy/trunk/pypy/module/cpyext/api.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/api.py	(original)
+++ pypy/trunk/pypy/module/cpyext/api.py	Sun May 16 23:41:48 2010
@@ -33,7 +33,7 @@
 
 # update these for other platforms
 Py_ssize_t = lltype.Signed
-Py_ssize_tP = lltype.Ptr(lltype.Array(Py_ssize_t, hints={'nolength': True}))
+Py_ssize_tP = rffi.CArrayPtr(Py_ssize_t)
 size_t = rffi.ULONG
 ADDR = lltype.Signed
 



More information about the Pypy-commit mailing list