From 7ab7d7d5b836d2595c5dc2c6db90c489f6768246 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 16 Jul 2023 17:39:54 -0700 Subject: Fix mem and mempool iteration. --- mem/test/mem_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mem/test') diff --git a/mem/test/mem_test.c b/mem/test/mem_test.c index 6ab4c7c..2f242c3 100644 --- a/mem/test/mem_test.c +++ b/mem/test/mem_test.c @@ -4,7 +4,7 @@ #define NUM_BLOCKS 10 -DEF_MEM(test_mem, int, NUM_BLOCKS); +DEF_MEM(test_mem, int, NUM_BLOCKS) static int count(test_mem* mem) { int count = 0; @@ -27,7 +27,7 @@ TEST_CASE(mem_create) { // Create a dynamically-backed allocator. TEST_CASE(mem_create_dyn) { DEF_MEM_DYN(dyn_mem, int); - + dyn_mem mem; mem_make_dyn(&mem, NUM_BLOCKS, sizeof(int)); } -- cgit v1.2.3