From d3bdeeca0c75a199e5f324f9cd2ffc89f63c563d Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Wed, 29 Mar 2023 18:24:05 +0100 Subject: [PATCH] increment program counter --- brillig_bytecode/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brillig_bytecode/src/lib.rs b/brillig_bytecode/src/lib.rs index c69a1d95f..8da18099d 100644 --- a/brillig_bytecode/src/lib.rs +++ b/brillig_bytecode/src/lib.rs @@ -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!(),