diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 2e3e2732..e67f4e2c 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -21141,13 +21141,10 @@ void BfExprEvaluator::PerformBinaryOperation(BfAstNode* leftExpression, BfAstNod } auto prevResultType = resultType; - if (leftValue.mType->IsPrimitiveType()) + if ((leftValue.mType->IsPrimitiveType()) && (!rightValue.mType->IsTypedPrimitive())) resultType = leftValue.mType; - if (rightValue.mType->IsPrimitiveType()) + if ((rightValue.mType->IsPrimitiveType()) && (!leftValue.mType->IsTypedPrimitive())) resultType = rightValue.mType; - - if ((prevResultType->IsTypedPrimitive()) && (resultType->IsPrimitiveType())) - explicitCast = true; } }