mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +00:00
Fix compiler warning
This commit is contained in:
parent
bf43f8af35
commit
506a224688
1 changed files with 1 additions and 1 deletions
|
|
@ -683,7 +683,7 @@ call_utc_tzinfo_method(PyObject *tzinfo, char *name, PyObject *tzinfoarg,
|
||||||
Py_DECREF(u);
|
Py_DECREF(u);
|
||||||
if (result < -1439 || result > 1439) {
|
if (result < -1439 || result > 1439) {
|
||||||
PyErr_Format(PyExc_ValueError,
|
PyErr_Format(PyExc_ValueError,
|
||||||
"tzinfo.%s() returned %ld; must be in "
|
"tzinfo.%s() returned %d; must be in "
|
||||||
"-1439 .. 1439",
|
"-1439 .. 1439",
|
||||||
name, result);
|
name, result);
|
||||||
result = -1;
|
result = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue