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, "");
}
{
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]);
{
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;