]> granicus.if.org Git - python/commitdiff
unicode_repeat(): Change type of local to Py_ssize_t,
authorTim Peters <tim.peters@gmail.com>
Tue, 23 May 2006 05:47:16 +0000 (05:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 23 May 2006 05:47:16 +0000 (05:47 +0000)
since that's what it should be.

Objects/unicodeobject.c

index 786d22242e1c1192f9e87794fb5e96003183bbc6..9a76d3583e19eb294518a94b11beb2b8e547e222 100644 (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;