From d74f3d15158ad818f2c63828078d1e178a9e118a Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 12 Nov 2006 14:02:25 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@605 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/serverutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/serverutil.cpp b/source/src/serverutil.cpp index 56ce8274..0b298668 100644 --- a/source/src/serverutil.cpp +++ b/source/src/serverutil.cpp @@ -80,7 +80,7 @@ const char *modenames[] = "team survior", "ctf", "pistols frenzy", "bot team deathmatch", "bot deathmatch", "last swiss standing", "last sniper standing" }; -const char *modestr(int n) { return (n>=0 && n < sizeof(modenames)/sizeof(modenames[0])) ? modenames[n] : "unknown"; }; +const char *modestr(int n) { return (n>=0 && (size_t)n < sizeof(modenames)/sizeof(modenames[0])) ? modenames[n] : "unknown"; }; char msgsizesl[] = // size inclusive message token, 0 for variable or not-checked sizes {