Skip to content

Commit 2c134c3

Browse files
benjaminpvstinner
authored andcommitted
convert from long long to PyLong loselessly (#1106)
1 parent a6902e6 commit 2c134c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapimodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3813,7 +3813,7 @@ test_PyTime_AsTimeval(PyObject *self, PyObject *args)
38133813
if (_PyTime_AsTimeval(t, &tv, round) < 0)
38143814
return NULL;
38153815

3816-
seconds = PyLong_FromLong((long long)tv.tv_sec);
3816+
seconds = PyLong_FromLongLong(tv.tv_sec);
38173817
if (seconds == NULL)
38183818
return NULL;
38193819
return Py_BuildValue("Nl", seconds, tv.tv_usec);

0 commit comments

Comments
 (0)