summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-12-19 00:42:03 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-12-19 00:42:03 (GMT)
commitc296c63c73b2cdeeac6407ece2f2cce4c7a24b04 (patch)
treee217c3b0d8b4dd6349b56283d4a351888d27fcad /Modules
parent91787cb4b3a0fcaaca7216154a209fd0bff4bd32 (diff)
downloadcpython-c296c63c73b2cdeeac6407ece2f2cce4c7a24b04.zip
cpython-c296c63c73b2cdeeac6407ece2f2cce4c7a24b04.tar.gz
cpython-c296c63c73b2cdeeac6407ece2f2cce4c7a24b04.tar.bz2
Fix crash on alphas due to mismatch between 'l' format and int variables.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/datetimemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 8d24570..68ffecc 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)