diff options
author | warren <warren.weckesser@gmail.com> | 2021-10-19 11:44:05 -0400 |
---|---|---|
committer | warren <warren.weckesser@gmail.com> | 2021-10-19 12:50:17 -0400 |
commit | 8e3f1ac0d4b44750f9c83ff74ed7f29dc6182196 (patch) | |
tree | 4c45c6680c29eb8b4feeff3f639a9ee81594b4d4 /numpy/array_api/_array_object.py | |
parent | 405c6eec7937721bd2e284dceaf4f49d5e6e39e8 (diff) | |
download | numpy-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