diff options
author | Guido van Rossum <guido@python.org> | 2002-12-16 20:34:55 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-12-16 20:34:55 (GMT) |
commit | bd43e9195ba734073b15b3a1b02e5621e3380ca9 (patch) | |
tree | d09d660ec0277b522a12634e1c6ad5c482c065c7 | |
parent | a29d508ec4f29f73a9569e27402f159b8efa57ca (diff) | |
download | cpython-bd43e9195ba734073b15b3a1b02e5621e3380ca9.zip cpython-bd43e9195ba734073b15b3a1b02e5621e3380ca9.tar.gz cpython-bd43e9195ba734073b15b3a1b02e5621e3380ca9.tar.bz2 |
Fix GCC warnings. It turns out two out of three pointed to real bugs!
-rw-r--r-- | Modules/datetimemodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 58af972..f2953a0 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -334,7 +334,7 @@ check_delta_day_range(int days) return 0; PyErr_Format(PyExc_OverflowError, "days=%d; must have magnitude <= %d", - days); + days, MAX_DELTA_DAYS); return -1; } @@ -1025,7 +1025,7 @@ isoformat_time(PyDateTime_DateTime *dt, char buffer[], int bufflen) /* Call time.time() and return its result (a Python float). */ static PyObject * -time_time() +time_time(void) { PyObject *result = NULL; PyObject *time = PyImport_ImportModule("time"); @@ -4141,7 +4141,7 @@ statichere PyTypeObject PyDateTime_TimeTZType = { 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_CHECKTYPES | Py_TPFLAGS_BASETYPE, /* tp_flags */ - time_doc, /* tp_doc */ + timetz_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ |