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:
parent
3bc57b174e
commit
39cf43102e
2 changed files with 2 additions and 2 deletions
|
@ -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++)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue