diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-18 00:23:30 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-18 00:23:30 +1100 |
commit | 5234133f2d55dc7f24eaa63b86e3952decaaba91 (patch) | |
tree | 01b4732ff6b1686f62cedcab5afe48092094784d /src/mem.c | |
parent | df81a840a5276c35df5f35d55610f1bf31487153 (diff) |
chore: format
Diffstat (limited to 'src/mem.c')
-rw-r--r-- | src/mem.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |