Replace _clean into _reset

This commit is contained in:
Patrick Pelissier committed 2021-10-28 18:32:53 +02:00
1 parent e10c3586a3
commit 30afcb45d8
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ CreateMinimalPerfectHash2(array_seed_t seed, array_value_t value,
enought. */
for(bool cont = true; cont ; ) {
cont = false;
array_seed_clean(slots);
array_seed_reset(slots);
for M_EACH(it, *b, array_cstr_t) {
size_t s = hash(d, *it) % size;
if (*array_value_get(value, s) != 0 || array_seed_contain_p(slots, s)){