Quiet a couple GCC warnings

This commit is contained in:
Randy Heit 2016-02-05 16:07:18 -06:00
parent 4228721351
commit 26eb335622
2 changed files with 2 additions and 2 deletions

View file

@ -182,7 +182,7 @@ void FName::NameManager::InitBuckets ()
// Register built-in names. 'None' must be name 0.
for (size_t i = 0; i < countof(PredefinedNames); ++i)
{
assert((NULL == FindName(PredefinedNames[i], true)) && "Predefined name already inserted");
assert((0 == FindName(PredefinedNames[i], true)) && "Predefined name already inserted");
FindName (PredefinedNames[i], false);
}
}

View file

@ -3777,7 +3777,7 @@ int P_ExecuteSpecial(int num,
int arg4,
int arg5)
{
if (num >= 0 && num < countof(LineSpecials))
if (num >= 0 && num < (int)countof(LineSpecials))
{
return LineSpecials[num](line, activator, backSide, arg1, arg2, arg3, arg4, arg5);
}