Skip to content

Commit

Permalink
swap a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 25, 2024
1 parent d916c44 commit 5db771f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/venom/passes/algebraic_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _handle_offsets(self):
if isinstance(ops[1], IRLabel):
# add is commutative
ops.reverse()
if isinstance(ops[1], IRLiteral) and isinstance(ops[0], IRLabel):
if isinstance(ops[0], IRLabel) and isinstance(ops[1], IRLiteral):
inst.opcode = "offset"

def run_pass(self):
Expand Down

0 comments on commit 5db771f

Please sign in to comment.