mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-04 16:31:58 +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:
1 parent
33ec343460
commit
86790d1486
1 file changed
+1
-1
@@ -14,7 +14,7 @@ namespace ZoneCodeGenerator.Domain.Evaluation
|
||||
|
||||
public IEvaluation Operand2 { get; }
|
||||
public bool Operand2NeedsParenthesis => Operand2 is Operation operation2 &&
|
||||
operation2.OperationType.Precedence > OperationType.Precedence;
|
||||
operation2.OperationType.Precedence >= OperationType.Precedence;
|
||||
|
||||
public OperationType OperationType { get; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user