diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-04-01 04:02:49 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-04-01 04:02:49 +0000 |
commit | 7518548620ce2438a86af5ac3da3be1c3c4fde4d (patch) | |
tree | af0e44a1c887ba20a36430f284f2dee3681ffd98 /numpy/core/src/arrayobject.c | |
parent | da06774dbf24c693bd722a9f0d30f8dcc53403a4 (diff) | |
download | numpy-7518548620ce2438a86af5ac3da3be1c3c4fde4d.tar.gz |
Fix ticket #482 caused by using the wrong index variable in PyArray_BroadCastToShape. The strides was being filled in by bogus strides data.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 4de6bd3be..22c9b642b 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -8892,7 +8892,7 @@ PyArray_BroadcastToShape(PyObject *obj, intp *dims, int nd) 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]; |