Skip to content

Commit

Permalink
pythongh-111482: Fix time_clockid_converter() on AIX (python#112170)
Browse files Browse the repository at this point in the history
clockid_t is defined as long long on AIX.
  • Loading branch information
vstinner authored and aisk committed Feb 11, 2024
1 parent 4c4f7c6 commit a7aa031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/timemodule.c
Original file line number Diff line number Diff line change
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 a7aa031

Please sign in to comment.