diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2fe9668..54db9aa 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<n; ++i) - if (s[i]==c) + size_t i; + for (i = 0; i < n; ++i) + if (s[i] == c) return s+i; return NULL; } |