Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-111482: Fix time_clockid_converter() on AIX #112170

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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