[Numpy-svn] r3413 - trunk/numpy/core/src

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Oct 28 04:27:52 CDT 2006


Author: oliphant
Date: 2006-10-28 04:27:49 -0500 (Sat, 28 Oct 2006)
New Revision: 3413

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
Use more general notion.

Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2006-10-28 09:26:36 UTC (rev 3412)
+++ trunk/numpy/core/src/scalartypes.inc.src	2006-10-28 09:27:49 UTC (rev 3413)
@@ -270,7 +270,7 @@
 #endif
         {
                 memcpy(PyArray_DATA(r), memptr, PyArray_ITEMSIZE(r));
-                if (PyArray_ISOBJECT(r)) {
+                if (PyDataType_FLAGCHK(typecode, NPY_ITEM_HASOBJECT)) {
                         Py_INCREF(*((PyObject **)memptr));
                 }
         }



More information about the Numpy-svn mailing list