diff options
author | Peter Hawkins <phawkins@google.com> | 2021-06-08 20:14:26 -0400 |
---|---|---|
committer | Peter Hawkins <phawkins@google.com> | 2021-06-09 20:47:49 -0400 |
commit | 7a74bece35c9c2381d0dd8c9b777ec5a0feb1728 (patch) | |
tree | 1dcd08adc6a154cbe1926d395ee7d3b19b3f4fa5 /numpy/array_api/_creation_functions.py | |
parent | b9a63f5052b0ba5a7a5b2616ddcc1754df177bd3 (diff) | |
download | numpy-7a74bece35c9c2381d0dd8c9b777ec5a0feb1728.tar.gz |
Fix out-of-bounds array access in convert_datetime_divisor_to_multiple().
If the NPY_DATETIMEUNIT is >= NPY_FR_s, the _multiples_table lookup will be out of bounds. It appears the correct logic appears a few lines down and should be used instead in this case.
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions