From e16a0035a48dd019848540c768b2e5dd0d47d616 Mon Sep 17 00:00:00 2001 From: Timerix Date: Mon, 21 Jul 2025 16:02:31 +0300 Subject: [PATCH] fixed bug in HashMap --- src/collections/HashMap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collections/HashMap.c b/src/collections/HashMap.c index b28eee7..c375691 100755 --- a/src/collections/HashMap.c +++ b/src/collections/HashMap.c @@ -83,7 +83,7 @@ void* NULLABLE(HashMap_tryGetPtr)(HashMap* ptr, str key){ static void __HashMap_expand(HashMap* ptr){ u32 height_expanded_n = ptr->height_n + 1; - assert(height_expanded_n >= Array_len(&__HashMap_heights, u32) && "HashMap IS FULL! Fix your code."); + assert(height_expanded_n < Array_len(&__HashMap_heights, u32) && "HashMap IS FULL! Fix your code."); // alloc new HashMapBucket array u32 height_expanded = ((u32*)__HashMap_heights.data)[height_expanded_n];