unicode_repeat(): Change type of local to Py_ssize_t,
since that's what it should be.
This commit is contained in:
parent
286085c781
commit
1bacc641a0
|
@ -5900,7 +5900,7 @@ unicode_repeat(PyUnicodeObject *str, Py_ssize_t len)
|
|||
if (str->length == 1 && len > 0) {
|
||||
Py_UNICODE_FILL(p, str->str[0], len);
|
||||
} else {
|
||||
int done = 0; /* number of characters copied this far */
|
||||
Py_ssize_t done = 0; /* number of characters copied this far */
|
||||
if (done < nchars) {
|
||||
Py_UNICODE_COPY(p, str->str, str->length);
|
||||
done = str->length;
|
||||
|
|
Loading…
Reference in New Issue