1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Bounds check fix

This commit is contained in:
Brian Fiete 2022-04-28 11:21:01 -07:00
parent 3bc57b174e
commit 39cf43102e
2 changed files with 2 additions and 2 deletions

View file

@ -3959,7 +3959,7 @@ void BfIRCodeGen::HandleNextCmd()
CMD_PARAM(int, argIdx);
CMD_PARAM(String, name);
if (argIdx >= func->arg_size())
if (argIdx > func->arg_size())
{
Fail("BfIRCmd_Func_SetParamName argIdx error");
break;