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

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Apr 7 01:06:57 CEST 2010


Author: xoraxax
Date: Wed Apr  7 01:06:56 2010
New Revision: 73478

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
Zero here to fix translation hopefully this time.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	Wed Apr  7 01:06:56 2010
@@ -166,7 +166,7 @@
 @specialize.memo()
 def get_new_method_def(space):
     from pypy.module.cpyext.modsupport import PyMethodDef
-    ptr = lltype.malloc(PyMethodDef, flavor="raw")
+    ptr = lltype.malloc(PyMethodDef, flavor="raw", zero=True)
     ptr.c_ml_name = rffi.str2charp("__new__")
     ptr.c_ml_meth = rffi.cast(PyCFunction,
         llhelper(tp_new_wrapper.api_func.functype,



More information about the Pypy-commit mailing list