From: Brett Cannon Date: Tue, 6 Nov 2007 23:15:11 +0000 (+0000) Subject: Change a variable to Py_ssize_t to silence a compiler warning (and because it X-Git-Tag: v3.0a2~222 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27da812498ca99ad12a4a8f146be6fc96df5bacc;p=python Change a variable to Py_ssize_t to silence a compiler warning (and because it is more appropriate). --- diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 6b2cd5a625..9342b19bfb 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));