kernel: Avoid some more -Wconversion errors in TextConsole

This commit is contained in:
apio 2023-07-21 15:14:05 +02:00
parent 0d924f89d3
commit 310b325af8
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -214,11 +214,11 @@ namespace TextConsole
u16 rows() u16 rows()
{ {
return (u16)Framebuffer::height() / FONT_HEIGHT; return (u16)Framebuffer::height() / (u16)FONT_HEIGHT;
} }
u16 cols() u16 cols()
{ {
return (u16)Framebuffer::width() / FONT_WIDTH; return (u16)Framebuffer::width() / (u16)FONT_WIDTH;
} }
} }