From: Tim Peters Date: Tue, 23 May 2006 05:47:16 +0000 (+0000) Subject: unicode_repeat(): Change type of local to Py_ssize_t, X-Git-Tag: v2.5b1~592 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bacc641a03cb8bc8590b19714d74c32867e39d5;p=thirdparty%2FPython%2Fcpython.git unicode_repeat(): Change type of local to Py_ssize_t, since that's what it should be. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 786d22242e1c..9a76d3583e19 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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;