Fixes sign-compare warnings

This commit is contained in:
Marcus Minhorst 2025-07-18 18:47:44 -04:00 committed by Ricardo Luís Vaz Silva
commit 9b0f5d9b0d
41 changed files with 109 additions and 108 deletions

View file

@ -577,9 +577,9 @@ VMFrame *VMFrameStack::PopFrame()
void VMCheckParamCount(VMFunction* func, int retcount, int argcount)
{
if (func->Proto->ReturnTypes.Size() != retcount)
if (func->Proto->ReturnTypes.SSize() != retcount)
I_FatalError("Incorrect return value passed to %s", func->PrintableName);
if (func->Proto->ArgumentTypes.Size() != argcount)
if (func->Proto->ArgumentTypes.SSize() != argcount)
I_FatalError("Incorrect parameter count passed to %s", func->PrintableName);
}