From be023cf57d763ff5b17dbb2a3afec156ca54a65d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 31 Oct 2019 23:14:05 +0100 Subject: Fixed several warnings --- src/kernel/graphics/vesa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 858ed95..ba8d84b 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -24,14 +24,14 @@ struct edid_data get_edid() { regs.ax = 0x4F15; regs.bx = 0x01; // BL regs.es = 0; - regs.di = (unsigned short) edid; + regs.di = (uintptr_t) &edid; paging_disable(); int32(0x10, ®s); paging_enable(); kfree(edid); - return *edid; + return *(struct edid_data *) edid; } void vbe_set_mode(unsigned short mode) { -- cgit v1.2.3