summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorkai-striega <kaistriega@gmail.com>2020-01-21 20:53:31 +0800
committerkai-striega <kaistriega@gmail.com>2020-01-21 20:53:31 +0800
commit2651332a6046e27632bd581de43601d4312c6d1e (patch)
tree8c27d266e2508ae4a572887e00a891289e006217 /numpy/array_api/_array_object.py
parentbe8f93cbfd5cec2f58bc15a54e602f74bd908ab3 (diff)
downloadnumpy-2651332a6046e27632bd581de43601d4312c6d1e.tar.gz
MAINT: simd: Avoid signed comparison warning
We do not need to cast the dimensions (`n`) to ``npy_uintp`` when comparing it to the stride length (of type ``npy_intp``). The cast is kept from similar checks where the cast is required ``(npy_uintp)n < (VECTOR_SIZE_BYTES / sizeof(@type@))`` In this case `strides` is precalcuated as ``VECTOR_SIZE_BYTES / (npy_intp)sizeof(@type@))`` therefore `n` is already of the correct type when the check is performed.
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions