summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-09-06 15:33:22 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-09-06 15:33:22 +0000
commitbc122407402fd8842753b72c2edb7ea21bc6c49f (patch)
tree40c38e130c869d1850d189f3f55d40b8c5a9a8e4 /numpy/core/src/arrayobject.c
parent61c3159dca9b35eb3e0ad6b7724900112c609123 (diff)
downloadnumpy-bc122407402fd8842753b72c2edb7ea21bc6c49f.tar.gz
Fix segfault in BroadcastToShape
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index dd96cee29..c40715208 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -8692,7 +8692,7 @@ PyArray_BroadcastToShape(PyObject *obj, intp *dims, int nd)
it->dims_m1[i];
if (i > 0)
it->factors[nd-i-1] = it->factors[nd-i] * \
- it->ao->dimensions[nd-i];
+ dims[nd-i];
}
PyArray_ITER_RESET(it);