[Python-checkins] r46085 - python/trunk/Objects/unicodeobject.c
tim.peters
python-checkins at python.org
Tue May 23 07:47:17 CEST 2006
Author: tim.peters
Date: Tue May 23 07:47:16 2006
New Revision: 46085
Modified:
python/trunk/Objects/unicodeobject.c
Log:
unicode_repeat(): Change type of local to Py_ssize_t,
since that's what it should be.
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c (original)
+++ python/trunk/Objects/unicodeobject.c Tue May 23 07:47:16 2006
@@ -5900,7 +5900,7 @@
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;
More information about the Python-checkins
mailing list