From 001272820c485c0d291c0bfee8bb6dc44bf98d45 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 15 Jul 2018 23:11:00 +0200 Subject: [PATCH] Update example to latests API. --- example/ex-mph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ex-mph.c b/example/ex-mph.c index 2e39c9ac..3c92133c 100644 --- a/example/ex-mph.c +++ b/example/ex-mph.c @@ -124,7 +124,7 @@ CreateMinimalPerfectHash2(array_seed_t seed, array_value_t value, array_seed_clean(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_contains(slots, s)){ + if (*array_value_get(value, s) != 0 || array_seed_contain_p(slots, s)){ d++; cont = true; break;