mirror of
https://github.com/python/cpython.git
synced 2025-09-28 03:13:48 +00:00
Fix crash on alphas due to mismatch between 'l' format and int variables.
This commit is contained in:
parent
91787cb4b3
commit
c296c63c73
1 changed files with 1 additions and 1 deletions
|
@ -3880,7 +3880,7 @@ timetz_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
||||||
"hour", "minute", "second", "microsecond", "tzinfo", NULL
|
"hour", "minute", "second", "microsecond", "tzinfo", NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
if (PyArg_ParseTupleAndKeywords(args, kw, "|llllO", keywords,
|
if (PyArg_ParseTupleAndKeywords(args, kw, "|iiiiO", keywords,
|
||||||
&hour, &minute, &second, &usecond,
|
&hour, &minute, &second, &usecond,
|
||||||
&tzinfo)) {
|
&tzinfo)) {
|
||||||
if (check_time_args(hour, minute, second, usecond) < 0)
|
if (check_time_args(hour, minute, second, usecond) < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue