Reinstated a necessary cast.

This commit is contained in:
Arron David Nelson 2024-02-08 02:09:58 -08:00
parent dd07283ffc
commit 6525d5f2b9

2
main.c
View File

@ -100,7 +100,7 @@ void free(void* ptr)
if (!ptr) if (!ptr)
return; return;
struct block* b = ptr - 1; struct block* b = (struct block*)ptr - 1;
b->free = 1; b->free = 1;
struct block* link = b->next; struct block* link = b->next;