summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-02-07 09:57:23 -0700
committerCharles Harris <charlesr.harris@gmail.com>2019-02-07 09:57:23 -0700
commit5c0c3ebb3fb4b861ed624117a8524f8f296c9c91 (patch)
tree8f6df9c2ac89dd60c29534dd239a786dc6169f56 /numpy/core/numeric.py
parentc009e1b98189fc13f78609fdfbb719a1e6b3e385 (diff)
downloadnumpy-5c0c3ebb3fb4b861ed624117a8524f8f296c9c91.tar.gz
BUG: Make timsort deal with zero length elements.
The elements of arrays of unicode, string, and void type may have zero length and such types do not need sorting. This fixes a segfault in timsort due to integer division by zero by checking the element size and returning immediately when it is zero.
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions