Update example to latests API.
This commit is contained in:
1 parent
4aca0664ef
commit
001272820c
1 file changed
+1
-1
+1
-1
@@ -124,7 +124,7 @@ CreateMinimalPerfectHash2(array_seed_t seed, array_value_t value,
|
|||||||
array_seed_clean(slots);
|
array_seed_clean(slots);
|
||||||
for M_EACH(it, *b, array_cstr_t) {
|
for M_EACH(it, *b, array_cstr_t) {
|
||||||
size_t s = hash(d, *it) % size;
|
size_t s = hash(d, *it) % size;
|
||||||
if (*array_value_get(value, s) != 0 || array_seed_contains(slots, s)){
|
if (*array_value_get(value, s) != 0 || array_seed_contain_p(slots, s)){
|
||||||
d++;
|
d++;
|
||||||
cont = true;
|
cont = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user