Kaydet (Commit) 77633518 authored tarafından Fredrik Lundh's avatar Fredrik Lundh

return 0 on misses, not -1.

üst f178e5c1
...@@ -172,7 +172,7 @@ LOCAL(int) unicode_member(Py_UNICODE chr, Py_UNICODE* set, Py_ssize_t setlen) ...@@ -172,7 +172,7 @@ LOCAL(int) unicode_member(Py_UNICODE chr, Py_UNICODE* set, Py_ssize_t setlen)
if (set[i] == chr) if (set[i] == chr)
return 1; return 1;
return -1; return 0;
} }
#define BLOOM_MEMBER(mask, chr, set, setlen)\ #define BLOOM_MEMBER(mask, chr, set, setlen)\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment