Fix compilation cast warning

This commit is contained in:
Sijmen 2020-12-27 00:58:10 +01:00
parent f9f282a595
commit bed8266327
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 1 additions and 1 deletions

View File

@ -1906,7 +1906,7 @@ void PrintFormat(const char* format, ...)
vsnprintf(tempBuffer, tempBufferSize, format, args); vsnprintf(tempBuffer, tempBufferSize, format, args);
va_end(args); va_end(args);
if (y_pos + 96 >= screenHeight) { if (y_pos + 96 >= static_cast<int>(screenHeight)) {
screen.ScrollUp(8); screen.ScrollUp(8);
y_pos -= 16; y_pos -= 16;
} }