Brian Fiete пре 4 година
родитељ
комит
a3ea79cd62
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      IDEHelper/Compiler/BfStmtEvaluator.cpp

+ 1 - 1
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)))