diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-04-13 08:44:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-04-13 08:44:54 (GMT) |
commit | 2c134c31252612ed4729fd05df6ab0e96de8d0b1 (patch) | |
tree | 45157a3e45f3ea3f7fcbea050c1255b97b1a8059 /Modules | |
parent | a6902e662c18dc837d40664eaafe50a44aae6366 (diff) | |
download | cpython-2c134c31252612ed4729fd05df6ab0e96de8d0b1.zip cpython-2c134c31252612ed4729fd05df6ab0e96de8d0b1.tar.gz cpython-2c134c31252612ed4729fd05df6ab0e96de8d0b1.tar.bz2 |
convert from long long to PyLong loselessly (#1106)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index c6af018..5460587 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); |