From 58b2831a7287cb00d14a221a9d0263fb0c427675 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 19 Sep 2021 12:58:07 +0200 Subject: Fixed birthday.c double delete. --- examples/birthday.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/birthday.c b/examples/birthday.c index eca105df..573ea7d8 100644 --- a/examples/birthday.c +++ b/examples/birthday.c @@ -27,7 +27,6 @@ static void test_repeats(void) if (v > 1) printf("repeated value %zu (%d) at 2^%d\n", k, v, (int) log2(i)); } } - cmap_ic_del(&m); } #define i_tag x @@ -41,7 +40,7 @@ void test_distribution(void) printf("distribution test: 2^%d values\n", BITS); stc64_t rng = stc64_init(seed); const size_t N = 1ull << BITS ; - + c_forauto (cmap_x, map) { c_forrange (N) { uint64_t k = stc64_rand(&rng); -- cgit v1.2.3