projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6902e6
)
convert from long long to PyLong loselessly (#1106)
author
Benjamin Peterson
<benjamin@python.org>
Thu, 13 Apr 2017 08:44:54 +0000
(
01:44
-0700)
committer
Victor Stinner
<victor.stinner@gmail.com>
Thu, 13 Apr 2017 08:44:54 +0000
(10:44 +0200)
Modules/_testcapimodule.c
patch
|
blob
|
history
diff --git
a/Modules/_testcapimodule.c
b/Modules/_testcapimodule.c
index c6af0180dfd66e1d4eb75c71b6eb3590d83cd6c4..54605872304ba51f1293a3ff26b998b8f765f8d2 100644
(file)
--- 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_FromLong
Long(
tv.tv_sec);
if (seconds == NULL)
return NULL;
return Py_BuildValue("Nl", seconds, tv.tv_usec);