diff --git a/src/fields/emulated_fp/allocated_field_var.rs b/src/fields/emulated_fp/allocated_field_var.rs index 6905fe37..e4721634 100644 --- a/src/fields/emulated_fp/allocated_field_var.rs +++ b/src/fields/emulated_fp/allocated_field_var.rs @@ -302,9 +302,9 @@ impl AllocatedEmulatedFpVar AllocatedEmulatedFpVar::get_limbs_representations_from_big_integer( - &::MODULUS, - self.get_optimization_type(), - )?; + let p_representations = Self::get_limbs_representations_from_big_integer( + &::MODULUS, + self.get_optimization_type(), + )?; let p_bigint = limbs_to_bigint(params.bits_per_limb, &p_representations); let mut p_gadget_limbs = Vec::new(); for limb in p_representations.iter() { p_gadget_limbs.push(FpVar::::Constant(*limb)); } - let p_gadget = AllocatedEmulatedFpVar:: { + let p_gadget = Self { cs: self.cs(), limbs: p_gadget_limbs, num_of_additions_over_normal_form: BaseF::one(), @@ -474,8 +473,8 @@ impl AllocatedEmulatedFpVar::new_witness(ns!(cs, "k"), || { @@ -621,10 +620,10 @@ impl AllocatedEmulatedFpVar>( cs: impl Into>, f: impl FnOnce() -> Result,