summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-22 19:00:10 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-22 19:00:10 (GMT)
commit030a5cebf4adb6664ba501dba4f27d2f2f63c25a (patch)
treec08194dc0599e03324b8c1e8b3a3a9fec65b62a3 /Objects/unicodeobject.c
parent32b069cf546a30826bc4d458acf1c7facc112fda (diff)
downloadcpython-030a5cebf4adb6664ba501dba4f27d2f2f63c25a.zip
cpython-030a5cebf4adb6664ba501dba4f27d2f2f63c25a.tar.gz
cpython-030a5cebf4adb6664ba501dba4f27d2f2f63c25a.tar.bz2
unicode_memchr(): Squashed gratuitous int-vs-size_t mismatch (which
gives a compiler wng under MSVC because of the resulting signed-vs- unsigned comparison).
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2fe9668..54db9aa 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4447,9 +4447,9 @@ static const char *stripformat[] = {"|O:lstrip", "|O:rstrip", "|O:strip"};
static const Py_UNICODE *
unicode_memchr(const Py_UNICODE *s, Py_UNICODE c, size_t n)
{
- int i;
- for (i = 0; i<n; ++i)
- if (s[i]==c)
+ size_t i;
+ for (i = 0; i < n; ++i)
+ if (s[i] == c)
return s+i;
return NULL;
}