summaryrefslogtreecommitdiff
path: root/src/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem.c')
-rw-r--r--src/mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mem.c b/src/mem.c
index ba122d7..dd8acda 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -22,8 +22,7 @@ void void_pool_free_all(void_pool* pool) {
// set all entries to be free
for (u64 i = 0; i < pool->capacity; i++) {
void* ptr = &pool->backing_buffer[i * pool->entry_size];
- void_pool_header* free_node =
- (void_pool_header*)ptr; // we reuse the actual entry itself to hold the header
+ void_pool_header* free_node = (void_pool_header*)ptr; // we reuse the actual entry itself to hold the header
if (i == (pool->capacity - 1)) {
// if the last one we make its next pointer NULL indicating its full
free_node->next = NULL;