]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix some warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2004 10:29:30 +0000 (10:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2004 10:29:30 +0000 (10:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3903 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index 00b8826fc74d9dc8d51c0e6edcf04ad923d95816..d350717a3033699d7e394f0e0fb000acfa789a00 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -734,7 +734,7 @@ Key_Unbindall_f (void)
        int         i, j;
 
        for (j = 0; j < 8; j++)
-               for (i = 0; i < sizeof(keybindings[0])/sizeof(keybindings[0][0]); i++)
+               for (i = 0; i < (int)(sizeof(keybindings[0])/sizeof(keybindings[0][0])); i++)
                        if (keybindings[j][i])
                                Key_SetBinding (i, j, "");
 }
@@ -786,12 +786,12 @@ Key_WriteBindings (qfile_t *f)
 {
        int         i, j;
 
-       for (i = 0; i < sizeof(keybindings[0])/sizeof(keybindings[0][0]); i++)
+       for (i = 0; i < (int)(sizeof(keybindings[0])/sizeof(keybindings[0][0])); i++)
                if (keybindings[0][i])
                        FS_Printf (f, "bind %s \"%s\"\n",
                                        Key_KeynumToString (i), keybindings[0][i]);
        for (j = 1; j < 8; j++)
-               for (i = 0; i < sizeof(keybindings[0])/sizeof(keybindings[0][0]); i++)
+               for (i = 0; i < (int)(sizeof(keybindings[0])/sizeof(keybindings[0][0])); i++)
                        if (keybindings[j][i])
                                FS_Printf (f, "in_bind %d %s \"%s\"\n",
                                                j, Key_KeynumToString (i), keybindings[j][i]);
@@ -1016,7 +1016,7 @@ Key_ClearStates (void)
 {
        int i;
 
-       for (i = 0; i < sizeof(keydown)/sizeof(keydown[0]); i++)
+       for (i = 0; i < (int)(sizeof(keydown)/sizeof(keydown[0])); i++)
        {
                keydown[i] = false;
                key_repeats[i] = 0;