mirror of https://github.com/python/cpython
Change a variable to Py_ssize_t to silence a compiler warning (and because it
is more appropriate).
This commit is contained in:
parent
c6f6008991
commit
27da812498
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue