[Numpy-svn] r8301 - trunk/numpy/core/src/private

numpy-svn@scip... numpy-svn@scip...
Wed Mar 24 13:18:38 CDT 2010


Author: charris
Date: 2010-03-24 13:18:38 -0500 (Wed, 24 Mar 2010)
New Revision: 8301

Modified:
   trunk/numpy/core/src/private/npy_3kcompat.h
Log:
Fix wrong function name. These functions aren't used a present so this just
fixes a warning.

Modified: trunk/numpy/core/src/private/npy_3kcompat.h
===================================================================
--- trunk/numpy/core/src/private/npy_3kcompat.h	2010-03-22 01:46:51 UTC (rev 8300)
+++ trunk/numpy/core/src/private/npy_3kcompat.h	2010-03-24 18:18:38 UTC (rev 8301)
@@ -234,7 +234,7 @@
 static NPY_INLINE PyObject *
 NpyCapsule_FromVoidPtrAndDesc(void *ptr, void* context, void (*dtor)(PyObject *))
 {
-    PyObject *ret = NpyCapsule_New(ptr, dtor);
+    PyObject *ret = NpyCapsule_FromVoidPtr(ptr, dtor);
     if (ret != NULL && PyCapsule_SetContext(ret, context) != 0) {
         PyErr_Clear();
         Py_DECREF(ret);



More information about the Numpy-svn mailing list