From 7518548620ce2438a86af5ac3da3be1c3c4fde4d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sun, 1 Apr 2007 04:02:49 +0000 Subject: Fix ticket #482 caused by using the wrong index variable in PyArray_BroadCastToShape. The strides was being filled in by bogus strides data. --- numpy/core/src/arrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') 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]; -- cgit v1.2.1