Skip to content

Commit 8e76c45

Browse files
sir-sigurdvstinner
authored andcommitted
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.
1 parent b5d3cee commit 8e76c45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/pytime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ extern "C" {
1717
store a duration, and so indirectly a date (related to another date, like
1818
UNIX epoch). */
1919
typedef int64_t _PyTime_t;
20-
#define _PyTime_MIN PY_LLONG_MIN
21-
#define _PyTime_MAX PY_LLONG_MAX
20+
#define _PyTime_MIN INT64_MIN
21+
#define _PyTime_MAX INT64_MAX
2222

2323
typedef enum {
2424
/* Round towards minus infinity (-inf).

0 commit comments

Comments
 (0)