Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthz committed Jan 19, 2024
1 parent b93a10a commit 3f571e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion werbolg-exec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<V: Valuable> ValueStack<V> {

/// Pop a call from the stack without a function associated
pub fn pop_call_nofun(&mut self, arity: CallArity) {
for _ in 0..(arity.0 as usize) + 1 {
for _ in 0..(arity.0 as usize) {
self.values.pop();
}
}
Expand Down

0 comments on commit 3f571e6

Please sign in to comment.