[Numpy-svn] r8588 - trunk/numpy/core/src/multiarray

numpy-svn@scip... numpy-svn@scip...
Tue Aug 3 16:37:48 CDT 2010


Author: ptvirtan
Date: 2010-08-03 16:37:48 -0500 (Tue, 03 Aug 2010)
New Revision: 8588

Modified:
   trunk/numpy/core/src/multiarray/convert_datatype.c
Log:
BUG: core: fix a missed PyCObject call (#1571)

Modified: trunk/numpy/core/src/multiarray/convert_datatype.c
===================================================================
--- trunk/numpy/core/src/multiarray/convert_datatype.c	2010-08-01 11:37:13 UTC (rev 8587)
+++ trunk/numpy/core/src/multiarray/convert_datatype.c	2010-08-03 21:37:48 UTC (rev 8588)
@@ -103,7 +103,7 @@
             cobj = PyDict_GetItem(obj, key);
             Py_DECREF(key);
             if (NpyCapsule_Check(cobj)) {
-                castfunc = PyCObject_AsVoidPtr(cobj);
+                castfunc = NpyCapsule_AsVoidPtr(cobj);
             }
         }
     }



More information about the Numpy-svn mailing list