Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
increment program counter
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Mar 29, 2023
1 parent 404721e commit d3bdeec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brillig_bytecode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ impl VM {
if !condition_value.is_zero() {
return self.set_program_counter(*destination);
}
self.status
self.increment_program_counter()
}
Opcode::JMPIFNOT { condition, destination } => {
let condition_value = self.registers.get(*condition);
if condition_value.is_zero() {
return self.set_program_counter(*destination);
}
self.status
self.increment_program_counter()
}
Opcode::Call => todo!(),
Opcode::Intrinsics => todo!(),
Expand Down

0 comments on commit d3bdeec

Please sign in to comment.