diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 2bb08447..e47e9f10 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -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++) diff --git a/IDEHelper/Compiler/BfIRCodeGen.cpp b/IDEHelper/Compiler/BfIRCodeGen.cpp index 99ccd65d..14acee63 100644 --- a/IDEHelper/Compiler/BfIRCodeGen.cpp +++ b/IDEHelper/Compiler/BfIRCodeGen.cpp @@ -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;