From: havoc Date: Sun, 7 Mar 2004 08:15:17 +0000 (+0000) Subject: fix two signed/unsigned comparison warnings X-Git-Tag: xonotic-v0.1.0preview~6027 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc0270d6f671c67b552c1f6508b3b8bf091945fa;p=xonotic%2Fdarkplaces.git fix two signed/unsigned comparison warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3979 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index 4c603d21..d7c30033 100644 --- a/menu.c +++ b/menu.c @@ -2015,7 +2015,7 @@ void M_FindKeysForCommand (char *command, int *keys) count = 0; - for (j = 0; j < sizeof (keybindings[0]) / sizeof (keybindings[0][0]); j++) + for (j = 0; j < (int)sizeof (keybindings[0]) / (int)sizeof (keybindings[0][0]); j++) { b = keybindings[0][j]; if (!b) @@ -2034,7 +2034,7 @@ void M_UnbindCommand (char *command) int j; char *b; - for (j = 0; j < sizeof (keybindings[0]) / sizeof (keybindings[0][0]); j++) + for (j = 0; j < (int)sizeof (keybindings[0]) / (int)sizeof (keybindings[0][0]); j++) { b = keybindings[0][j]; if (!b)