mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
ZoneCodeGenerator: Fix not respecting when in an operation the second operand should be calculated first but the precedence is the same
This commit is contained in:
parent
33ec343460
commit
86790d1486
@ -14,7 +14,7 @@ namespace ZoneCodeGenerator.Domain.Evaluation
|
|||||||
|
|
||||||
public IEvaluation Operand2 { get; }
|
public IEvaluation Operand2 { get; }
|
||||||
public bool Operand2NeedsParenthesis => Operand2 is Operation operation2 &&
|
public bool Operand2NeedsParenthesis => Operand2 is Operation operation2 &&
|
||||||
operation2.OperationType.Precedence > OperationType.Precedence;
|
operation2.OperationType.Precedence >= OperationType.Precedence;
|
||||||
|
|
||||||
public OperationType OperationType { get; }
|
public OperationType OperationType { get; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user