summaryrefslogtreecommitdiff
path: root/numpy/doc/basics.py
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej.certik@gmail.com>2012-12-26 20:35:16 -0800
committerOndřej Čertík <ondrej.certik@gmail.com>2012-12-26 20:35:16 -0800
commit15022cbfc5fdbae023fae3b8384459d2dee07c53 (patch)
tree053c0e924ebb92a79d23957bf4ab3c7a76125875 /numpy/doc/basics.py
parentdb671db12269c6aedfbfcabfb2f17b991b44d1d0 (diff)
downloadnumpy-15022cbfc5fdbae023fae3b8384459d2dee07c53.tar.gz
FIX: Use the NPY_TIME_T macro everywhere
Previously, two (critical) parts of the code used `time_t` instead of `NPY_TIME_T`. Due to the fact, that most of the time `NPY_TIME_T` was equal to `time_t`, this bug didn't show up. But in mingw, `NPY_TIME_T` is actually equal to `__time64_t` and then this causes 64 bit integers to be cast into 32 bit integers (thus becoming negative), which causes localtime() to fail in mingw. Fixes gh-568.
Diffstat (limited to 'numpy/doc/basics.py')
0 files changed, 0 insertions, 0 deletions