Skip to content

Commit

Permalink
Fix missing brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhartmann committed Dec 19, 2023
1 parent aa02657 commit 83370e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _unify_binary_operation_in_assignment(assignment: Assignment):
if not assignment.value.operation == OperationType.plus:
assignment.substitute(
assignment.value,
BinaryOperation(OperationType.plus, [assignment.value.left, UnaryOperation(OperationType.negate, assignment.value.right)]),
BinaryOperation(OperationType.plus, [assignment.value.left, UnaryOperation(OperationType.negate, [assignment.value.right])]),
)

if any(isinstance(operand, Constant) for operand in assignment.value.left.subexpressions()):
Expand Down

0 comments on commit 83370e4

Please sign in to comment.