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

numpy-svn@scip... numpy-svn@scip...
Mon Mar 2 09:01:31 CST 2009


Author: cdavid
Date: 2009-03-02 09:01:21 -0600 (Mon, 02 Mar 2009)
New Revision: 6528

Modified:
   trunk/numpy/core/src/multiarraymodule.c
Log:
Make sure dest array is aligned for putmask.

Modified: trunk/numpy/core/src/multiarraymodule.c
===================================================================
--- trunk/numpy/core/src/multiarraymodule.c	2009-03-02 14:46:20 UTC (rev 6527)
+++ trunk/numpy/core/src/multiarraymodule.c	2009-03-02 15:01:21 UTC (rev 6528)
@@ -4616,7 +4616,7 @@
                         "be an array");
         return NULL;
     }
-    if (!PyArray_ISCONTIGUOUS(self)) {
+    if (!PyArray_ISCONTIGUOUS(self) || !(self->flags & ALIGNED)) {
         PyArrayObject *obj;
         int flags = NPY_CARRAY | NPY_UPDATEIFCOPY;
 



More information about the Numpy-svn mailing list