From 374e6d244f184056d64fd02729a7badf02991e29 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 12:17:43 +0200 Subject: fix almost all compiler warnings --- src/init/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index 3403a3b..fb379d2 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -5,7 +5,7 @@ const char *multipageify(const char *str) { static char buf[0x2000] __attribute__((section("text"))); - char *out = ((uintptr_t)buf & ~0xFFF) + 0xFFF; + char *out = (void*)((uintptr_t)buf & ~0xFFF) + 0xFFF; char *cur = out; do { *cur++ = *str; -- cgit v1.2.3