From 77633518089c5512b9044cdedc525f3a08e2fdd4 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Tue, 23 May 2006 19:47:35 +0000 Subject: [PATCH] return 0 on misses, not -1. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)\ -- 2.40.0