diff options
author | Victor Stinner <vstinner@python.org> | 2023-11-16 23:00:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 23:00:16 (GMT) |
commit | ceefa0b0795b5cc7adef89bd036ce843b5c78d3e (patch) | |
tree | 5db2c864f9f6adcaf59790bfddaa5afcc18b5b41 | |
parent | 974847be443e9798615e197ec6642e546a71a6b0 (diff) | |
download | cpython-ceefa0b0795b5cc7adef89bd036ce843b5c78d3e.zip cpython-ceefa0b0795b5cc7adef89bd036ce843b5c78d3e.tar.gz cpython-ceefa0b0795b5cc7adef89bd036ce843b5c78d3e.tar.bz2 |
gh-111482: Fix time_clockid_converter() on AIX (#112170)
clockid_t is defined as long long on AIX.
-rw-r--r-- | Modules/timemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index e82f6eb..bc3901e 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 |