unicode_memchr(): Squashed gratuitous int-vs-size_t mismatch (which

gives a compiler wng under MSVC because of the resulting signed-vs-
unsigned comparison).
This commit is contained in:
Tim Peters 2002-04-22 19:00:10 +00:00
parent 32b069cf54
commit 030a5cebf4
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}