diff --git a/decompiler/pipeline/controlflowanalysis/loop_utility_methods.py b/decompiler/pipeline/controlflowanalysis/loop_utility_methods.py index 86fe8e501..b2ea2e520 100644 --- a/decompiler/pipeline/controlflowanalysis/loop_utility_methods.py +++ b/decompiler/pipeline/controlflowanalysis/loop_utility_methods.py @@ -312,5 +312,5 @@ def _substract_continuation_from_last_definition(code_node: CodeNode, continuati last_definition.substitute( last_definition.value, BinaryOperation(OperationType.minus, [last_definition.value, continuation.instruction.value.right]) ) - if _count_unaryoperations_negations(continuation.instruction.value.left) % 2 != 0: + if _count_unaryoperations_negations(continuation.instruction.value.left) % 2: last_definition.substitute(last_definition.value, UnaryOperation(OperationType.negate, [last_definition.value]))