summaryrefslogtreecommitdiff
path: root/src/mem.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:23:30 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:23:30 +1100
commit5234133f2d55dc7f24eaa63b86e3952decaaba91 (patch)
tree01b4732ff6b1686f62cedcab5afe48092094784d /src/mem.c
parentdf81a840a5276c35df5f35d55610f1bf31487153 (diff)
chore: format
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;