diff --git a/optimism/src/mips/interpreter.rs b/optimism/src/mips/interpreter.rs index 797d08b320..eb3a832272 100644 --- a/optimism/src/mips/interpreter.rs +++ b/optimism/src/mips/interpreter.rs @@ -969,7 +969,7 @@ pub fn interpret_itype(env: &mut Env, instr: ITypeInstructi unsafe { env.test_less_than_signed(&rs, &Env::constant(0), pos) } }; let offset = - less_than.clone() * Env::constant(4) + (Env::constant(1) - less_than) * offset; + (Env::constant(1) - less_than.clone()) * Env::constant(4) + less_than * offset; let addr = { let pos = env.alloc_scratch(); env.copy(&(next_instruction_pointer.clone() + offset), pos)