diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2019-08-23 15:39:09 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-08-23 15:39:09 (GMT) |
commit | 8e76c456226438f2e4931ce7baf05ac8faae34a1 (patch) | |
tree | 4cb64f5f12eef44f6f9b4f2960fe8239cbd025d9 /Include | |
parent | b5d3ceea48c181b3e2c6c67424317afed606bd39 (diff) | |
download | cpython-8e76c456226438f2e4931ce7baf05ac8faae34a1.zip cpython-8e76c456226438f2e4931ce7baf05ac8faae34a1.tar.gz cpython-8e76c456226438f2e4931ce7baf05ac8faae34a1.tar.bz2 |
Fix _PyTime_MIN/MAX values (GH-15384)
_PyTime_t type is defined as int64_t, and so min/max are INT64_MIN/INT64_MAX,
not PY_LLONG_MIN/PY_LLONG_MAX.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pytime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pytime.h b/Include/pytime.h index 4870a9d..bdda1da 100644 --- a/Include/pytime.h +++ b/Include/pytime.h @@ -17,8 +17,8 @@ extern "C" { store a duration, and so indirectly a date (related to another date, like UNIX epoch). */ typedef int64_t _PyTime_t; -#define _PyTime_MIN PY_LLONG_MIN -#define _PyTime_MAX PY_LLONG_MAX +#define _PyTime_MIN INT64_MIN +#define _PyTime_MAX INT64_MAX typedef enum { /* Round towards minus infinity (-inf). |