From ec819f1a5c7d4524ba473895cd9dd008bdf1e0b2 Mon Sep 17 00:00:00 2001 From: luffykai Date: Mon, 14 Oct 2024 20:47:07 -0700 Subject: [PATCH] rename --- vm/src/intrinsics/modular_v2/muldiv.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/src/intrinsics/modular_v2/muldiv.rs b/vm/src/intrinsics/modular_v2/muldiv.rs index cf3cfd331a..7c86b6ff15 100644 --- a/vm/src/intrinsics/modular_v2/muldiv.rs +++ b/vm/src/intrinsics/modular_v2/muldiv.rs @@ -129,7 +129,7 @@ impl Self::Record, )> { let Instruction { opcode, .. } = instruction.clone(); - let opcode = opcode - self.offset; + let local_opcode_index = opcode - self.offset; let (x, y) = reads; let x = x.map(|x| x.as_canonical_u32()); let y = y.map(|x| x.as_canonical_u32()); @@ -137,7 +137,7 @@ impl let x_biguint = limbs_to_biguint(&x, LIMB_SIZE); let y_biguint = limbs_to_biguint(&y, LIMB_SIZE); - let opcode = ModularArithmeticOpcode::from_usize(opcode); + let opcode = ModularArithmeticOpcode::from_usize(local_opcode_index); let is_mul_flag = match opcode { ModularArithmeticOpcode::MUL => true, ModularArithmeticOpcode::DIV => false,