diff --git a/src/mpl2mpl/src/muid_replacement.cpp b/src/mpl2mpl/src/muid_replacement.cpp index cc504221a8bd38fc6b831d90f18d1b8371b77fb0..fe44ac61b3c2e7884529edda1f9366f77a33d0d5 100644 --- a/src/mpl2mpl/src/muid_replacement.cpp +++ b/src/mpl2mpl/src/muid_replacement.cpp @@ -316,12 +316,12 @@ void MUIDReplacement::GenerateFuncDefTable() { uint32 muidIdx = iter->second.second; constexpr uint32 weakFuncFlag = 0x80000000; // 0b10000000 00000000 00000000 00000000 auto *indexConst = static_cast(muidIdxTabConst->GetConstVecItem(muidIdx)); - uint32 tempIdx = (indexConst->GetValue() & weakFuncFlag) | idx; + uint32 tempIdx = (static_cast(indexConst->GetValue()) & weakFuncFlag) | idx; indexConst = GetMIRModule().GetMemPool()->New(tempIdx, *GlobalTables::GetTypeTable().GetUInt32()); muidIdxTabConst->SetConstVecItem(muidIdx, *indexConst); if (reflectionList.find(mirFunc->GetName()) != reflectionList.end()) { auto *tempConst = static_cast(muidIdxTabConst->GetConstVecItem(idx)); - tempIdx = weakFuncFlag | tempConst->GetValue(); + tempIdx = weakFuncFlag | static_cast(tempConst->GetValue()); tempConst = GetMIRModule().GetMemPool()->New(tempIdx, *GlobalTables::GetTypeTable().GetUInt32()); muidIdxTabConst->SetConstVecItem(idx, *tempConst); }