mirror of
https://github.com/python/cpython.git
synced 2025-09-30 04:15:43 +00:00
parent
9366332822
commit
04ac853945
1 changed files with 1 additions and 1 deletions
|
@ -3812,7 +3812,7 @@ test_PyTime_AsTimeval(PyObject *self, PyObject *args)
|
|||
if (_PyTime_AsTimeval(t, &tv, round) < 0)
|
||||
return NULL;
|
||||
|
||||
seconds = PyLong_FromLong((long long)tv.tv_sec);
|
||||
seconds = PyLong_FromLongLong(tv.tv_sec);
|
||||
if (seconds == NULL)
|
||||
return NULL;
|
||||
return Py_BuildValue("Nl", seconds, tv.tv_usec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue