summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_packbits.py
diff options
context:
space:
mode:
authorYu Feng <rainwoodman@gmail.com>2016-11-16 14:44:49 -0800
committerYu Feng <rainwoodman@gmail.com>2016-11-21 16:09:40 -0800
commitcce86d6241d6fa8253ca119a0b47b05a5b375996 (patch)
treec8a37c62e26b371e4e19eebb352bf214201b18bb /numpy/lib/tests/test_packbits.py
parenta7d244ce2257c4e5115cf802fe34e8ad57bb8e54 (diff)
downloadnumpy-cce86d6241d6fa8253ca119a0b47b05a5b375996.tar.gz
BUG: Fix iteration over reversed subspaces in mapiter_@name@.
As stated in #8264, before this patch numpy crashes when the subspace of iterator has negative strides on the faster resetting branch for trivially iterable subspaces in mapiter_@name@. Noticing the offset between ptr and first item in subspace is constant, we calculate the offset from the first iteration and use it onwards. Fixes #8264
Diffstat (limited to 'numpy/lib/tests/test_packbits.py')
0 files changed, 0 insertions, 0 deletions