mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-28 13:45:41 +00:00
Fix ZCG new operation 2 needs parenthesis if precendence is equal
This commit is contained in:
1 parent
5b7f33b63d
commit
9578a24c49
1 file changed
+1
-1
@@ -36,5 +36,5 @@ bool Operation::Operand1NeedsParenthesis() const
|
||||
bool Operation::Operand2NeedsParenthesis() const
|
||||
{
|
||||
return m_operand2->GetType() == EvaluationType::OPERATION
|
||||
&& dynamic_cast<Operation*>(m_operand2.get())->m_operation_type->m_precedence > m_operation_type->m_precedence;
|
||||
&& dynamic_cast<Operation*>(m_operand2.get())->m_operation_type->m_precedence >= m_operation_type->m_precedence;
|
||||
}
|
||||
Reference in new issue
Block a user