Kaydet (Commit) 030a5ceb authored tarafından Tim Peters's avatar Tim Peters

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

gives a compiler wng under MSVC because of the resulting signed-vs-
unsigned comparison).
üst 32b069cf
...@@ -4447,9 +4447,9 @@ static const char *stripformat[] = {"|O:lstrip", "|O:rstrip", "|O:strip"}; ...@@ -4447,9 +4447,9 @@ static const char *stripformat[] = {"|O:lstrip", "|O:rstrip", "|O:strip"};
static const Py_UNICODE * static const Py_UNICODE *
unicode_memchr(const Py_UNICODE *s, Py_UNICODE c, size_t n) unicode_memchr(const Py_UNICODE *s, Py_UNICODE c, size_t n)
{ {
int i; size_t i;
for (i = 0; i<n; ++i) for (i = 0; i < n; ++i)
if (s[i]==c) if (s[i] == c)
return s+i; return s+i;
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment