unicode_repeat(): Change type of local to Py_ssize_t,

since that's what it should be.
This commit is contained in:
Tim Peters 2006-05-23 05:47:16 +00:00
parent 286085c781
commit 1bacc641a0
1 changed files with 1 additions and 1 deletions

View File

@ -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;