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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Aug 28 15:56:27 CDT 2006


Author: oliphant
Date: 2006-08-28 15:56:23 -0500 (Mon, 28 Aug 2006)
New Revision: 3089

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
Fix flags on numpy array scalars for array interface.

Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2006-08-28 20:01:34 UTC (rev 3088)
+++ trunk/numpy/core/src/scalartypes.inc.src	2006-08-28 20:56:23 UTC (rev 3089)
@@ -731,6 +731,8 @@
         inter->two = 2;
         inter->nd = 0;
         inter->flags = arr->flags;
+        inter->flags &= ~(UPDATEIFCOPY | OWNDATA);
+        inter->flags |= NPY_NOTSWAPPED;
         inter->typekind = arr->descr->kind;
         inter->itemsize = arr->descr->elsize;
         inter->strides = NULL;



More information about the Numpy-svn mailing list