mirror of
https://github.com/python/cpython
synced 2024-10-14 11:03:18 +00:00
gh-111482: Fix time_clockid_converter() on AIX (#112170)
clockid_t is defined as long long on AIX.
This commit is contained in:
parent
974847be44
commit
ceefa0b079
|
@ -236,8 +236,8 @@ _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
|
||||||
static int
|
static int
|
||||||
time_clockid_converter(PyObject *obj, clockid_t *p)
|
time_clockid_converter(PyObject *obj, clockid_t *p)
|
||||||
{
|
{
|
||||||
#if defined(_AIX) && (SIZEOF_LONG == 8)
|
#ifdef _AIX
|
||||||
long clk_id = PyLong_AsLong(obj);
|
long long clk_id = PyLong_AsLongLong(obj);
|
||||||
#else
|
#else
|
||||||
int clk_id = PyLong_AsInt(obj);
|
int clk_id = PyLong_AsInt(obj);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue