Clean up code

This commit is contained in:
2024-05-05 19:13:24 +05:30
parent b77cc5639c
commit 91af3e14ef
4 changed files with 9 additions and 8 deletions

View File

@@ -191,7 +191,7 @@ void vm_print_heap(vm_t *vm, FILE *fp)
fprintf(fp, "\n");
for (size_t i = 0; i < heap.pages; ++i)
{
fprintf(fp, "\t[%lu]@%p: ", i, cur);
fprintf(fp, "\t[%lu]@%p: ", i, (void *)cur);
if (!cur)
fprintf(fp, "<NIL>\n");
else