Author Michael.Felt
Recipients EGuesnet, Michael.Felt, vstinner
Date 2020-01-30.14:20:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580394003.84.0.34598577167.issue39502@roundup.psfhosted.org>
In-reply-to
Content
Probably this broke the 64-bit usage.

diff --git a/Python/pytime.c b/Python/pytime.c
index 54ddfc952b..6f13e62490 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -1059,7 +1059,7 @@ _PyTime_localtime(time_t t, struct tm *tm)
     return 0;
 #else /* !MS_WINDOWS */

-#ifdef _AIX
+#ifdef defined(_AIX) and (SIZEOF_LONG ==4)
     /* bpo-34373: AIX does not return NULL if t is too small or too large */
     if (t < -2145916800 /* 1902-01-01 */
        || t > 2145916800 /* 2038-01-01 */) {


Testing...
History
Date User Action Args
2020-01-30 14:20:03Michael.Feltsetrecipients: + Michael.Felt, vstinner, EGuesnet
2020-01-30 14:20:03Michael.Feltsetmessageid: <1580394003.84.0.34598577167.issue39502@roundup.psfhosted.org>
2020-01-30 14:20:03Michael.Feltlinkissue39502 messages
2020-01-30 14:20:03Michael.Feltcreate