kernel: Avoid some more -Wconversion errors in TextConsole
This commit is contained in:
parent
0d924f89d3
commit
310b325af8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user