From bc002b326f3b2024ebb46ee195f00a6c46453f2e Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sun, 1 Feb 2026 04:13:25 -0500 Subject: lose assert.h --- map.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/map.c b/map.c index a34def4..42882d0 100644 --- a/map.c +++ b/map.c @@ -1,7 +1,6 @@ #include "map.h" #include "crash.h" #include -#include #define DEFAULT_CAPACITY 16 @@ -81,7 +80,7 @@ void* map_get_or_default(const map_t* map, const void* key, void* default_val) { static void insert_entry(map_t* map, struct __map_entry* entry) { struct __map_entry* slot = fetch_entry(map, entry->key); - assert(slot->next == NULL); + if (slot->next != NULL) crash("Hash map internals are corrupted\n"); slot->key = entry->key; slot->value = entry->value; slot->next = entry; -- cgit v1.2.3