summaryrefslogtreecommitdiff
path: root/numpy/doc/byteswapping.py
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2019-04-05 14:59:32 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2019-04-05 14:59:32 -0400
commit8fdacfc041bce4f63a4172d56da4520a3040b79d (patch)
tree5bb1aaba914c3f6334fad630a12eac61c24da66e /numpy/doc/byteswapping.py
parentc1bf6a600cb4c8c7261a000f47b11ef8fd9f792d (diff)
downloadnumpy-8fdacfc041bce4f63a4172d56da4520a3040b79d.tar.gz
MAINT: f2py: Add a cast to avoid a compiler warning.
The warning [...]/fortranobject.c:138:18: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long' [-Wsign-compare] if (size < sizeof(notalloc)) { ~~~~ ^ ~~~~~~~~~~~~~~~~ occurs 17 times when scipy is built. The change in this pull request casts `size` to `size_t` before comparing it to `sizeof(...)`. A previous check has already eliminated the possibility that `size` is negative, so this cast is safe.
Diffstat (limited to 'numpy/doc/byteswapping.py')
0 files changed, 0 insertions, 0 deletions