From c296c63c73b2cdeeac6407ece2f2cce4c7a24b04 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 19 Dec 2002 00:42:03 +0000 Subject: [PATCH] Fix crash on alphas due to mismatch between 'l' format and int variables. --- Modules/datetimemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 8d245707138..68ffecce745 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -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)