summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/ufuncobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c
index 87389e5ef..6a655987a 100644
--- a/numpy/core/src/ufuncobject.c
+++ b/numpy/core/src/ufuncobject.c
@@ -2926,7 +2926,7 @@ PyUFunc_Reduceat(PyUFuncObject *self, PyArrayObject *arr, PyArrayObject *ind,
ptr = (intp *)ind->data;
for(i=0; i<nn; i++) {
loop->bufptr[1] = loop->it->dataptr + \
- (*ptr)*loop->instrides;
+ (*ptr)*loop->steps[1];
if (loop->obj) {
Py_XINCREF(*((PyObject **)loop->bufptr[1]));
}
@@ -2935,7 +2935,7 @@ PyUFunc_Reduceat(PyUFuncObject *self, PyArrayObject *arr, PyArrayObject *ind,
mm = (i==nn-1 ? arr->dimensions[axis]-*ptr : \
*(ptr+1) - *ptr) - 1;
if (mm > 0) {
- loop->bufptr[1] += loop->instrides;
+ loop->bufptr[1] += loop->steps[1];
loop->bufptr[2] = loop->bufptr[0];
loop->function((char **)loop->bufptr,
&mm, loop->steps,