Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 23228:6db6e3dc8366 legacy-trunk
unicode_memchr(): Squashed gratuitous int-vs-size_t mismatch (which
gives a compiler wng under MSVC because of the resulting signed-vs-
unsigned comparison).
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Mon, 22 Apr 2002 19:00:10 +0000 |
| parents | e639e34ef901 |
| children | b735e89ccda7 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Mon Apr 22 18:43:49 2002 +0000 +++ b/Objects/unicodeobject.c Mon Apr 22 19:00:10 2002 +0000 @@ -4447,9 +4447,9 @@ 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; }
