Hopefully really fixed crash in datetime adapter.

Verified with gcc 4.3. Notice that on gcc 4.4 the bug was not present.
This commit is contained in:
Daniele Varrazzo 2011-02-01 02:00:47 +00:00
parent 153c30f24b
commit a2dcf504b5

View File

@ -387,7 +387,7 @@ psyco_Timestamp(PyObject *self, PyObject *args)
int hour=0, minute=0; /* default to midnight */ int hour=0, minute=0; /* default to midnight */
double second=0.0; double second=0.0;
if (!PyArg_ParseTuple(args, "lii|iidO", &year, &month, &day, if (!PyArg_ParseTuple(args, "iii|iidO", &year, &month, &day,
&hour, &minute, &second, &tzinfo)) &hour, &minute, &second, &tzinfo))
return NULL; return NULL;