summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorwarren <warren.weckesser@gmail.com>2021-10-19 11:44:05 -0400
committerwarren <warren.weckesser@gmail.com>2021-10-19 12:50:17 -0400
commit8e3f1ac0d4b44750f9c83ff74ed7f29dc6182196 (patch)
tree4c45c6680c29eb8b4feeff3f639a9ee81594b4d4 /numpy/array_api/_array_object.py
parent405c6eec7937721bd2e284dceaf4f49d5e6e39e8 (diff)
downloadnumpy-8e3f1ac0d4b44750f9c83ff74ed7f29dc6182196.tar.gz
BUG: core: Fix incorrect check of NpyIter_Deallocate return value.
NpyIter_Deallocate returns 0 for failure and 1 for success, so the check `NpyIter_Deallocate(iter) < 0` is not correct. (See relevant comments in gh-20069.)
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions