Skip to content

Commit 33b6326

Browse files
committed
BUG: set the needs_api variable in np.where
1 parent bd8d70a commit 33b6326

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numpy/core/src/multiarray/multiarraymodule.c

+2
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,8 @@ PyArray_Where(PyObject *condition, PyObject *x, PyObject *y)
27642764
goto fail;
27652765
}
27662766

2767+
needs_api = NpyIter_IterationNeedsAPI(iter);
2768+
27672769
if (!needs_api) {
27682770
NPY_BEGIN_THREADS_THRESHOLDED(NpyIter_GetIterSize(iter));
27692771
}

0 commit comments

Comments
 (0)