Kaydet (Commit) 2c134c31 authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) Victor Stinner

convert from long long to PyLong loselessly (#1106)

üst a6902e66
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment