From 8ce63636f69a97e20969cbe6f3d45be613320f2a Mon Sep 17 00:00:00 2001 From: abxh <83485102+abxh@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:13:03 +0200 Subject: [PATCH] Update fhashtable.c --- examples/arena/fhashtable.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/arena/fhashtable.c b/examples/arena/fhashtable.c index 3a4e49a..21d5530 100644 --- a/examples/arena/fhashtable.c +++ b/examples/arena/fhashtable.c @@ -23,8 +23,10 @@ void str_int_ht_test_alt(void) uint32_t capacity = 3; uint32_t size = 0; - assert(strint_ht_calc_sizeof(&capacity, &size) == true); - + const bool r = strint_ht_calc_sizeof(&capacity, &size); + if (!r) { + assert(false); + } struct strint_ht *ht = arena_allocate_aligned(&arena, alignof(struct strint_ht), size); if (!ht) { assert(false);