Skip to content

Commit

Permalink
Update fhashtable.c
Browse files Browse the repository at this point in the history
  • Loading branch information
abxh authored Sep 9, 2024
1 parent f8506ac commit 8ce6363
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/arena/fhashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8ce6363

Please sign in to comment.