diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index c6af0180dfd..54605872304 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -3813,7 +3813,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);