Skip to content

Commit

Permalink
bugfix: IfThens can have paren optimizations too
Browse files Browse the repository at this point in the history
  • Loading branch information
rpitasky committed Dec 2, 2024
1 parent ba1640d commit 10e51da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ans=267-(262-H)G
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ impl Statement {
Statement::ControlFlow(control_flow) => {
match control_flow {
ControlFlow::If(expr)
| ControlFlow::IfThen(expr)
| ControlFlow::While(expr)
| ControlFlow::Repeat(expr) => {
expr.optimize_parentheses();
Expand Down

0 comments on commit 10e51da

Please sign in to comment.