]> granicus.if.org Git - python/commitdiff
Fix crash on alphas due to mismatch between 'l' format and int variables.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 19 Dec 2002 00:42:03 +0000 (00:42 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 19 Dec 2002 00:42:03 +0000 (00:42 +0000)
Modules/datetimemodule.c

index 8d245707138ce43222b564722c6b4dad95b837f2..68ffecce74564b5b7347bea826b0acd78cd5c86e 100644 (file)
@@ -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)