diff options
author | 3gg <3gg@shellblade.net> | 2023-07-16 17:39:54 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-07-16 17:39:54 -0700 |
commit | 7ab7d7d5b836d2595c5dc2c6db90c489f6768246 (patch) | |
tree | d87f7b7f6f7eedbfc4eb6133369d9fb0c0cc6fb2 /mem/test/mem_test.c | |
parent | ecc2645ba4c44005ef13e33c79059de69b76551f (diff) |
Fix mem and mempool iteration.
Diffstat (limited to 'mem/test/mem_test.c')
-rw-r--r-- | mem/test/mem_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
4 | 4 | ||
5 | #define NUM_BLOCKS 10 | 5 | #define NUM_BLOCKS 10 |
6 | 6 | ||
7 | DEF_MEM(test_mem, int, NUM_BLOCKS); | 7 | DEF_MEM(test_mem, int, NUM_BLOCKS) |
8 | 8 | ||
9 | static int count(test_mem* mem) { | 9 | static int count(test_mem* mem) { |
10 | int count = 0; | 10 | int count = 0; |
@@ -27,7 +27,7 @@ TEST_CASE(mem_create) { | |||
27 | // Create a dynamically-backed allocator. | 27 | // Create a dynamically-backed allocator. |
28 | TEST_CASE(mem_create_dyn) { | 28 | TEST_CASE(mem_create_dyn) { |
29 | DEF_MEM_DYN(dyn_mem, int); | 29 | DEF_MEM_DYN(dyn_mem, int); |
30 | 30 | ||
31 | dyn_mem mem; | 31 | dyn_mem mem; |
32 | mem_make_dyn(&mem, NUM_BLOCKS, sizeof(int)); | 32 | mem_make_dyn(&mem, NUM_BLOCKS, sizeof(int)); |
33 | } | 33 | } |