From 27da812498ca99ad12a4a8f146be6fc96df5bacc Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 6 Nov 2007 23:15:11 +0000 Subject: Change a variable to Py_ssize_t to silence a compiler warning (and because it is more appropriate). --- Modules/datetimemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v0.12