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

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Mar 3 07:23:39 EST 2009


Author: cdavid
Date: 2009-03-03 06:23:36 -0600 (Tue, 03 Mar 2009)
New Revision: 6541

Modified:
   trunk/numpy/core/src/multiarraymodule.c
Log:
Revert r6528 (crashes on windows). I think the bug is only hidden for now, and there may be a leak somewhere in PyArray_PutMask function; should investigate for 1.3.0.

Modified: trunk/numpy/core/src/multiarraymodule.c
===================================================================
--- trunk/numpy/core/src/multiarraymodule.c	2009-03-03 11:57:57 UTC (rev 6540)
+++ trunk/numpy/core/src/multiarraymodule.c	2009-03-03 12:23:36 UTC (rev 6541)
@@ -4616,7 +4616,7 @@
                         "be an array");
         return NULL;
     }
-    if (!PyArray_ISCONTIGUOUS(self) || !(self->flags & ALIGNED)) {
+    if (!PyArray_ISCONTIGUOUS(self)) {
         PyArrayObject *obj;
         int flags = NPY_CARRAY | NPY_UPDATEIFCOPY;
 




More information about the Numpy-svn mailing list