Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ceefa0b

Browse filesBrowse files
authored
gh-111482: Fix time_clockid_converter() on AIX (#112170)
clockid_t is defined as long long on AIX.
1 parent 974847b commit ceefa0b
Copy full SHA for ceefa0b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎Modules/timemodule.c

Copy file name to clipboardExpand all lines: Modules/timemodule.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
236236
static int
237237
time_clockid_converter(PyObject *obj, clockid_t *p)
238238
{
239-
#if defined(_AIX) && (SIZEOF_LONG == 8)
240-
long clk_id = PyLong_AsLong(obj);
239+
#ifdef _AIX
240+
long long clk_id = PyLong_AsLongLong(obj);
241241
#else
242242
int clk_id = PyLong_AsInt(obj);
243243
#endif

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.