diff --git a/src/mapleall/maple_ir/src/bin_mpl_import.cpp b/src/mapleall/maple_ir/src/bin_mpl_import.cpp index 7b9d6f020550006c3fd8b1befad2fb94abfc23e6..0840f5932a9ed331132da5d0957607192291cc85 100644 --- a/src/mapleall/maple_ir/src/bin_mpl_import.cpp +++ b/src/mapleall/maple_ir/src/bin_mpl_import.cpp @@ -1021,7 +1021,7 @@ PUIdx BinaryMplImport::ImportFunction() { mod.SetCurFunction(nullptr); return 0; } else if (tag < 0) { - CHECK_FATAL(static_cast(-tag) < funcTab.size(), "index out of bounds"); + CHECK_FATAL(-tag <= funcTab.size(), "index out of bounds"); if (-tag == funcTab.size()) { // function was exported before its symbol return (PUIdx)0; }