From 6525d5f2b9fb51bb2650e5af7222c8918e0ee5fc Mon Sep 17 00:00:00 2001 From: karutoh Date: Thu, 8 Feb 2024 02:09:58 -0800 Subject: [PATCH] Reinstated a necessary cast. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 60be449..3821143 100644 --- a/main.c +++ b/main.c @@ -100,7 +100,7 @@ void free(void* ptr) if (!ptr) return; - struct block* b = ptr - 1; + struct block* b = (struct block*)ptr - 1; b->free = 1; struct block* link = b->next;