mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Fix ZCG new operation 2 needs parenthesis if precendence is equal
This commit is contained in:
@ -36,5 +36,5 @@ bool Operation::Operand1NeedsParenthesis() const
|
|||||||
bool Operation::Operand2NeedsParenthesis() const
|
bool Operation::Operand2NeedsParenthesis() const
|
||||||
{
|
{
|
||||||
return m_operand2->GetType() == EvaluationType::OPERATION
|
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