From: Fredrik Lundh Date: Tue, 23 May 2006 19:47:35 +0000 (+0000) Subject: return 0 on misses, not -1. X-Git-Tag: v2.5b1~563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77633518089c5512b9044cdedc525f3a08e2fdd4;p=python return 0 on misses, not -1. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 714bdddae7..c5e87a8519 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -172,7 +172,7 @@ LOCAL(int) unicode_member(Py_UNICODE chr, Py_UNICODE* set, Py_ssize_t setlen) if (set[i] == chr) return 1; - return -1; + return 0; } #define BLOOM_MEMBER(mask, chr, set, setlen)\