From: Tim Peters Date: Mon, 22 Apr 2002 19:00:10 +0000 (+0000) Subject: unicode_memchr(): Squashed gratuitous int-vs-size_t mismatch (which X-Git-Tag: v2.3c1~5832 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=030a5cebf4adb6664ba501dba4f27d2f2f63c25a;p=thirdparty%2FPython%2Fcpython.git unicode_memchr(): Squashed gratuitous int-vs-size_t mismatch (which gives a compiler wng under MSVC because of the resulting signed-vs- unsigned comparison). --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2fe96681a056..54db9aaddf0d 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