From 9731a7e1fc779db3ae21e0054346cc37eed3508c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 21 May 2020 22:35:00 +0200 Subject: Fixed assertion --- src/kernel/memory/paging.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/memory/paging.c b/src/kernel/memory/paging.c index c00de9a..96fa584 100644 --- a/src/kernel/memory/paging.c +++ b/src/kernel/memory/paging.c @@ -39,11 +39,11 @@ void paging_install() // Test! u32 *a = malloc(4096); u32 *b = malloc(4096); - free((void *)b); - free((void *)a); + free(b); + free(a); u32 *c = malloc(2048); - assert(&a == &c); - c[42] = 4242; + assert(a == c); + c[42] = 0x4242; free(c); info("Malloc test succeeded!"); } -- cgit v1.2.3