[Numpy-svn] r8593 - branches/1.5.x/numpy/core/src/multiarray

numpy-svn@scip... numpy-svn@scip...
Tue Aug 3 16:52:53 CDT 2010


Author: ptvirtan
Date: 2010-08-03 16:52:53 -0500 (Tue, 03 Aug 2010)
New Revision: 8593

Modified:
   branches/1.5.x/numpy/core/src/multiarray/convert_datatype.c
Log:
BUG: (backport r8588) core: fix a missed PyCObject call (#1571)

Modified: branches/1.5.x/numpy/core/src/multiarray/convert_datatype.c
===================================================================
--- branches/1.5.x/numpy/core/src/multiarray/convert_datatype.c	2010-08-03 21:52:29 UTC (rev 8592)
+++ branches/1.5.x/numpy/core/src/multiarray/convert_datatype.c	2010-08-03 21:52:53 UTC (rev 8593)
@@ -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