Skip to content

Commit

Permalink
fix: fix method program_counter, change method signature (#3012)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvict authored Oct 6, 2023
1 parent 758b6b6 commit 5ea522b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acvm-repo/brillig_vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl<'bb_solver, B: BlackBoxFunctionSolver> VM<'bb_solver, B> {
}

/// Returns the current value of the program counter.
pub fn program_counter(self) -> usize {
pub fn program_counter(&self) -> usize {
self.program_counter
}

Expand Down

0 comments on commit 5ea522b

Please sign in to comment.