mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 21:44:22 +01:00
Fix warning
This commit is contained in:
parent
71a7060bab
commit
bd5194f4bd
2
menu.cpp
2
menu.cpp
@ -34,7 +34,7 @@ void Menu::printText(SDL_Surface *where, const char *msg, SDL_Color clr,
|
||||
int pixels_per_char = tw / strlen(buf);
|
||||
int last_char = (w / pixels_per_char) - 1;
|
||||
|
||||
if (last_char > strlen(buf))
|
||||
if ((unsigned)last_char > strlen(buf))
|
||||
last_char = strlen(buf) - 3;
|
||||
|
||||
/* FIXME! Handle some corner cases here (short strings etc) */
|
||||
|
Loading…
Reference in New Issue
Block a user