summaryrefslogtreecommitdiffstats
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-11-06 23:15:11 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-11-06 23:15:11 (GMT)
commit27da812498ca99ad12a4a8f146be6fc96df5bacc (patch)
treef95367422d4e4521541a287b7cdedf3b25d0ddf4 /Modules/datetimemodule.c
parentc6f600899131377b3c522702ffc453cc80b27420 (diff)
downloadcpython-27da812498ca99ad12a4a8f146be6fc96df5bacc.zip
cpython-27da812498ca99ad12a4a8f146be6fc96df5bacc.tar.gz
cpython-27da812498ca99ad12a4a8f146be6fc96df5bacc.tar.bz2
Change a variable to Py_ssize_t to silence a compiler warning (and because it
is more appropriate).
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 6b2cd5a..9342b19 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -1197,7 +1197,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
int usednew; /* number bytes used so far in output format buffer */
const char *ptoappend;/* pointer to string to append to output buffer */
- int ntoappend; /* # of bytes to append to output buffer */
+ Py_ssize_t ntoappend; /* # of bytes to append to output buffer */
assert(object && format && timetuple);
assert(PyUnicode_Check(format));