diff --git a/IDEHelper/Compiler/BfStmtEvaluator.cpp b/IDEHelper/Compiler/BfStmtEvaluator.cpp index bfc0be0d..9399849e 100644 --- a/IDEHelper/Compiler/BfStmtEvaluator.cpp +++ b/IDEHelper/Compiler/BfStmtEvaluator.cpp @@ -4464,7 +4464,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt) } } - if (caseValue.mType == switchValue.mType) + if ((caseValue.mType == switchValue.mType) || (eqResult)) { constantInt = mBfIRBuilder->GetConstant(caseValue.mValue); if ((constantInt != NULL) && (!mBfIRBuilder->IsInt(constantInt->mTypeCode)))