Skip to content

Commit

Permalink
rune: Fix converge check
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Jul 27, 2024
1 parent ccffc79 commit 859e39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rune/src/compile/v1/assemble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2277,7 +2277,7 @@ fn expr_if<'a, 'hir>(

cx.scopes.pop(branch, scope)?;

if !asm.converging() && it.peek().is_some() {
if asm.converging() && it.peek().is_some() {
cx.asm.jump(&end_label, branch)?;
}
}
Expand Down

0 comments on commit 859e39b

Please sign in to comment.