Skip to content

Commit

Permalink
pythongh-111482: Fix time_clockid_converter() on AIX
Browse files Browse the repository at this point in the history
clockid_t is defined as long long on AIX.
  • Loading branch information
vstinner committed Nov 16, 2023
1 parent 7680da4 commit c7c5479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/timemodule.c
Expand Up @@ -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
Expand Down

0 comments on commit c7c5479

Please sign in to comment.