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

numpy-svn@scip... numpy-svn@scip...
Mon Apr 14 15:46:56 CDT 2008


Author: oliphant
Date: 2008-04-14 15:46:55 -0500 (Mon, 14 Apr 2008)
New Revision: 5034

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Fix up swap choice for FillWithScalar.

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2008-04-14 20:41:53 UTC (rev 5033)
+++ trunk/numpy/core/src/arrayobject.c	2008-04-14 20:46:55 UTC (rev 5034)
@@ -5816,7 +5816,7 @@
         newarr = PyArray_FromAny(obj, descr, 0,0, ALIGNED, NULL);
         if (newarr == NULL) return -1;
         fromptr = PyArray_DATA(newarr);
-        swap=!PyArray_ISNOTSWAPPED(arr);
+        swap = (PyArray_ISNOTSWAPPED(arr) != PyArray_ISNOTSWAPPED(newarr));
     }
     size=PyArray_SIZE(arr);
     copyswap = arr->descr->f->copyswap;



More information about the Numpy-svn mailing list