]> granicus.if.org Git - python/commitdiff
return 0 on misses, not -1.
authorFredrik Lundh <fredrik@pythonware.com>
Tue, 23 May 2006 19:47:35 +0000 (19:47 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Tue, 23 May 2006 19:47:35 +0000 (19:47 +0000)
Objects/unicodeobject.c

index 714bdddae74c672b1b2ead6a74dcf2bbdde2e8a3..c5e87a8519e18bf3477c90e8377fc896fe32b6ff 100644 (file)
@@ -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)\