]> granicus.if.org Git - python/commitdiff
Change a variable to Py_ssize_t to silence a compiler warning (and because it
authorBrett Cannon <bcannon@gmail.com>
Tue, 6 Nov 2007 23:15:11 +0000 (23:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 6 Nov 2007 23:15:11 +0000 (23:15 +0000)
is more appropriate).

Modules/datetimemodule.c

index 6b2cd5a62504495cd30ba8dd9853fb1873926d3b..9342b19bfbdafc13fc04290f0d196176882c73ce 100644 (file)
@@ -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));