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

@ -10313,7 +10313,7 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetGenericTypeInstances(BfCompiler*
auto lookupType = bfCompiler->GetType(checkTypeName);
if (lookupType == NULL)
{
// Sanitize potentially-generic type name into an unspecialized type name
// Convert potentially-specialized type name into an unspecialized type name
int chevronDepth = 0;
int chevronStart = -1;
for (int i = 0; i < (int)checkTypeName.mLength; i++)

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;