Skip to content

Commit

Permalink
Minor VM speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
mliezun committed Jan 15, 2024
1 parent 88fa78d commit e2cd3a4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,6 @@ impl VM {
}
}
OpCode::Return => {
if self.stack.len() <= 1 {
return;
}
let stack = self.stack.pop().unwrap();

// Store return values
Expand Down

0 comments on commit e2cd3a4

Please sign in to comment.