(svn r1451) Fix some of the signed/unsigned comparison warnings

This commit is contained in:
tron
2005-01-09 21:25:44 +00:00
parent c6c86abeee
commit 49584082a0
20 changed files with 39 additions and 33 deletions

View File

@@ -313,11 +313,11 @@ static CommandProc * const _command_proc_table[] = {
};
/* This function range-checks a cmd, and checks if the cmd is not NULL */
bool IsValidCommand(int cmd)
bool IsValidCommand(uint cmd)
{
cmd = cmd & 0xFF;
if (cmd < 0 || cmd >= lengthof(_command_proc_table) || _command_proc_table[cmd] == NULL)
if (cmd >= lengthof(_command_proc_table) || _command_proc_table[cmd] == NULL)
return false;
return true;