diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-05-23 05:47:16 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-05-23 05:47:16 (GMT) |
commit | 1bacc641a03cb8bc8590b19714d74c32867e39d5 (patch) | |
tree | d2bbb74f435974c21ee5bcf0c0e85cf5c3fb50cd /Objects/unicodeobject.c | |
parent | 286085c781e74627f00e9866b01456a7f52c9d5b (diff) | |
download | cpython-1bacc641a03cb8bc8590b19714d74c32867e39d5.zip cpython-1bacc641a03cb8bc8590b19714d74c32867e39d5.tar.gz cpython-1bacc641a03cb8bc8590b19714d74c32867e39d5.tar.bz2 |
unicode_repeat(): Change type of local to Py_ssize_t,
since that's what it should be.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 786d222..9a76d35 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; |