diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-09-06 15:33:22 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-09-06 15:33:22 +0000 |
commit | bc122407402fd8842753b72c2edb7ea21bc6c49f (patch) | |
tree | 40c38e130c869d1850d189f3f55d40b8c5a9a8e4 /numpy/core/src | |
parent | 61c3159dca9b35eb3e0ad6b7724900112c609123 (diff) | |
download | numpy-bc122407402fd8842753b72c2edb7ea21bc6c49f.tar.gz |
Fix segfault in BroadcastToShape
Diffstat (limited to 'numpy/core/src')
-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 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); |