diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-05-23 14:19:12 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-08-16 16:39:32 -0500 |
commit | ea2e1f51d23298c7d232547edeb7b2aa5771c527 (patch) | |
tree | 2d6cbbbb4f1deb4cba2e8f540dddd24db3c82b5c | |
parent | 9438a8f133edb4c3329746d8c23988a55f9d969a (diff) | |
download | numpy-ea2e1f51d23298c7d232547edeb7b2aa5771c527.tar.gz |
Remove unnecessary check
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 950f8add1..df2d529ba 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4930,11 +4930,9 @@ ufunc_at(PyUFuncObject *ufunc, PyObject *args) * iterated over correctly */ if ((iter->subspace != NULL) && (iter->consec)) { - if (iter->iteraxes[0] > 0) { - PyArray_MapIterSwapAxes(iter, &op2_array, 0); - if (op2_array == NULL) { - goto fail; - } + PyArray_MapIterSwapAxes(iter, &op2_array, 0); + if (op2_array == NULL) { + goto fail; } } |