diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-06-14 08:10:03 -0700 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-06-14 08:10:03 -0700 |
commit | b459d9da2d0e30de1541f5ae905e3fb158553238 (patch) | |
tree | 5b5fc068ac87c1fa324ee96f6f3567fe4ff990a7 /numpy/array_api/_indexing_functions.py | |
parent | 78f838655f9499f65670aaba92fc81b371252bc9 (diff) | |
download | numpy-b459d9da2d0e30de1541f5ae905e3fb158553238.tar.gz |
BUG: Do not skip value-based promotion path for large Python integers
When we have:
1. Only Python scalars (int, float, complex) as inputs
2. One of the integers is too large for the default integer dtype
The "new" promotion path (which existed for a long time internally!)
would not produce the same result as the legacy value-based path.
However, my logic failed to check for the second part, so it did not
run the legacy path in this odd little case.
This fixes the issue reported in:
https://github.com/numpy/numpy/issues/13754#issuecomment-1155126639
Diffstat (limited to 'numpy/array_api/_indexing_functions.py')
0 files changed, 0 insertions, 0 deletions