mirror of https://github.com/python/cpython.git
Fix crash on alphas due to mismatch between 'l' format and int variables.
This commit is contained in:
parent
91787cb4b3
commit
c296c63c73
|
@ -3880,7 +3880,7 @@ timetz_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
"hour", "minute", "second", "microsecond", "tzinfo", NULL
|
||||
};
|
||||
|
||||
if (PyArg_ParseTupleAndKeywords(args, kw, "|llllO", keywords,
|
||||
if (PyArg_ParseTupleAndKeywords(args, kw, "|iiiiO", keywords,
|
||||
&hour, &minute, &second, &usecond,
|
||||
&tzinfo)) {
|
||||
if (check_time_args(hour, minute, second, usecond) < 0)
|
||||
|
|
Loading…
Reference in New Issue