From 310b325af8e6306ef6bd5b25203dd23d257de621 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 21 Jul 2023 15:14:05 +0200 Subject: [PATCH] kernel: Avoid some more -Wconversion errors in TextConsole --- kernel/src/video/TextConsole.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/video/TextConsole.cpp b/kernel/src/video/TextConsole.cpp index d55f433c..92d271e2 100644 --- a/kernel/src/video/TextConsole.cpp +++ b/kernel/src/video/TextConsole.cpp @@ -214,11 +214,11 @@ namespace TextConsole u16 rows() { - return (u16)Framebuffer::height() / FONT_HEIGHT; + return (u16)Framebuffer::height() / (u16)FONT_HEIGHT; } u16 cols() { - return (u16)Framebuffer::width() / FONT_WIDTH; + return (u16)Framebuffer::width() / (u16)FONT_WIDTH; } }