From 335fe063ea9b98d8d94cb60e63a08eeb5303f0d8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Jan 2022 12:45:22 -0500 Subject: Fix hash insertion tombstone replacement case --- src/hash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hash.c') diff --git a/src/hash.c b/src/hash.c index ab916d0..f0f2fe9 100644 --- a/src/hash.c +++ b/src/hash.c @@ -272,6 +272,7 @@ zix_hash_plan_insert_prehashed(const ZixHash* const hash, if (!found_tombstone && !hash->entries[pos.index].value) { assert(hash->entries[pos.index].hash == tombstone); first_tombstone = pos.index; // Remember the first/best free index + found_tombstone = true; } pos.index = next_index(hash, pos.index); -- cgit v1.2.1