[Numpy-svn] r3632 - trunk/numpy/core/src
numpy-svn at scipy.org
numpy-svn at scipy.org
Sun Apr 1 00:02:51 EDT 2007
Author: oliphant
Date: 2007-03-31 23:02:49 -0500 (Sat, 31 Mar 2007)
New Revision: 3632
Modified:
trunk/numpy/core/src/arrayobject.c
Log:
Fix ticket #482 caused by using the wrong index variable in PyArray_BroadCastToShape. The strides was being filled in by bogus strides data.
Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c 2007-04-01 03:44:27 UTC (rev 3631)
+++ trunk/numpy/core/src/arrayobject.c 2007-04-01 04:02:49 UTC (rev 3632)
@@ -8892,7 +8892,7 @@
it->strides[i] = 0;
}
else {
- it->strides[i] = ao->strides[i];
+ it->strides[i] = ao->strides[k];
}
it->backstrides[i] = it->strides[i] * \
it->dims_m1[i];
More information about the Numpy-svn
mailing list