Skip to content

Commit

Permalink
fix: increment self.instr_idx
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwfang committed Oct 1, 2024
1 parent a7f210b commit 6b09036
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/interpreter/src/valid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,10 @@ impl<'a, 'm> Expr<'a, 'm> {
}

fn check(mut self) -> CheckResult {
self.instr_idx = 0;
while !self.labels.is_empty() {
self.instr()?;
self.instr_idx += 1;
}
Ok(())
}
Expand Down

0 comments on commit 6b09036

Please sign in to comment.