diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-12-17 14:44:04 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-01-23 11:30:15 -0700 |
commit | 9ec856d3ac713a7af3d4a6d14957d50daa075d68 (patch) | |
tree | 5a3bcc51572fd916475e40049229dfa3eba117c5 /numpy/lib/function_base.py | |
parent | b78bbef27101c17601eb73104a79665bf1a46558 (diff) | |
download | numpy-9ec856d3ac713a7af3d4a6d14957d50daa075d68.tar.gz |
BUG: Fix sign-compare warnings in datetime.c and datetime_strings.c.
Fix is to make sure NPY_DATETIMEUNIT enum a signed integer type by
adding NPY_FR_ERROR = -1. Relevant places where -1 was used before are
also replaced by the enum. Note that current code logic requires that it
be less than all the valid units, using a nonvalid positive value leads
to segfaults due comparisons assuming that order.
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions