summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-05-23 19:47:35 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-05-23 19:47:35 (GMT)
commit77633518089c5512b9044cdedc525f3a08e2fdd4 (patch)
tree9cebd81b7f63dc2c0a8d5e7a169901e050e80115 /Objects/unicodeobject.c
parentf178e5c1b75509c5f024ecb84a421b83718f35fe (diff)
downloadcpython-77633518089c5512b9044cdedc525f3a08e2fdd4.zip
cpython-77633518089c5512b9044cdedc525f3a08e2fdd4.tar.gz
cpython-77633518089c5512b9044cdedc525f3a08e2fdd4.tar.bz2
return 0 on misses, not -1.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 714bddd..c5e87a8 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)\