From bd5194f4bd3168949574df99e2724a87bd285873 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Fri, 4 Dec 2009 20:03:00 +0000 Subject: [PATCH] Fix warning --- menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 3363e57..ab85cd1 100644 --- a/menu.cpp +++ b/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) */