]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
unicode_memchr(): Squashed compiler wng (signed-vs-unsigned comparison).
authorTim Peters <tim.peters@gmail.com>
Tue, 24 Sep 2002 15:22:30 +0000 (15:22 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 24 Sep 2002 15:22:30 +0000 (15:22 +0000)
Objects/unicodeobject.c

index 58ea033734281fc4a203d4a347f3c7cc19fb9cb8..642b0f643a0f1e81c7d71ce0717a708529e88f79 100644 (file)
@@ -4428,7 +4428,7 @@ 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;
+       size_t i;
        for (i = 0; i<n; ++i)
                if (s[i]==c)
                        return s+i;