summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-05-23 05:47:16 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-05-23 05:47:16 (GMT)
commit1bacc641a03cb8bc8590b19714d74c32867e39d5 (patch)
treed2bbb74f435974c21ee5bcf0c0e85cf5c3fb50cd /Objects/unicodeobject.c
parent286085c781e74627f00e9866b01456a7f52c9d5b (diff)
downloadcpython-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.c2
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;