From: Benjamin Peterson Date: Thu, 13 Apr 2017 21:11:48 +0000 (-0700) Subject: convert from long long to PyLong loselessly (#1106) (#1121) X-Git-Tag: v3.6.2rc1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04ac85394565a1cfbfae03b072ca82adc3a83d3b;p=thirdparty%2FPython%2Fcpython.git convert from long long to PyLong loselessly (#1106) (#1121) --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index f09205f63cc5..b25f4434ffa3 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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);