mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +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)
|
if (_PyTime_AsTimeval(t, &tv, round) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
seconds = PyLong_FromLong((long long)tv.tv_sec);
|
seconds = PyLong_FromLongLong(tv.tv_sec);
|
||||||
if (seconds == NULL)
|
if (seconds == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
return Py_BuildValue("Nl", seconds, tv.tv_usec);
|
return Py_BuildValue("Nl", seconds, tv.tv_usec);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue