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.
This commit is contained in:
Sergey Fedoseev 2019-08-23 20:39:09 +05:00 committed by Victor Stinner
parent b5d3ceea48
commit 8e76c45622
1 changed files with 2 additions and 2 deletions

View File

@ -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).