From c7c54795c50658049787a9b34e1ecf1beca5e36e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 16 Nov 2023 18:28:42 +0100 Subject: [PATCH] gh-111482: Fix time_clockid_converter() on AIX clockid_t is defined as long long on AIX. --- Modules/timemodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index e82f6eb98ebaf3..bc3901e0d7a621 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -236,8 +236,8 @@ _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) static int time_clockid_converter(PyObject *obj, clockid_t *p) { -#if defined(_AIX) && (SIZEOF_LONG == 8) - long clk_id = PyLong_AsLong(obj); +#ifdef _AIX + long long clk_id = PyLong_AsLongLong(obj); #else int clk_id = PyLong_AsInt(obj); #endif