- Fix signed/unsigned mismatch warned by GCC.

SVN r3450 (trunk)
This commit is contained in:
Randy Heit 2012-03-17 03:10:19 +00:00
parent 849d6724d8
commit 6f12a6e8bb

View file

@ -5255,6 +5255,9 @@ int DLevelScript::RunScript ()
STACK(1) = !STACK(1);
break;
case PCD_NEGATEBINARY:
STACK(1) = ~STACK(1);
break;
@ -7400,11 +7403,11 @@ static void addDefered (level_info_t *i, acsdefered_t::EType type, int script, c
def->next = i->defered;
def->type = type;
def->script = script;
for (j = 0; j < countof(def->args) && j < argcount; ++j)
for (j = 0; (size_t)j < countof(def->args) && j < argcount; ++j)
{
def->args[j] = args[j];
}
while (j < countof(def->args))
while ((size_t)j < countof(def->args))
{
def->args[j++] = 0;
}