Skip to content

Commit c79ee07

Browse files
committed
Merge branch 'use-frobenious-in-place' into release-0.4
2 parents bdffd13 + cd7cbaf commit c79ee07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fields/fp/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ impl<F: PrimeField> FieldVar<F, F> for FpVar<F> {
762762
FpVar::Var(v) => v.frobenius_map(power).map(FpVar::Var),
763763
FpVar::Constant(f) => {
764764
let mut f = *f;
765-
f.frobenius_map(power);
765+
f.frobenius_map_in_place(power);
766766
Ok(FpVar::Constant(f))
767767
},
768768
}

src/fields/nonnative/field_var.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl<TargetField: PrimeField, BaseField: PrimeField> FieldVar<TargetField, BaseF
138138
match self {
139139
Self::Constant(c) => Ok(Self::Constant({
140140
let mut tmp = *c;
141-
tmp.frobenius_map(power);
141+
tmp.frobenius_map_in_place(power);
142142
tmp
143143
})),
144144
Self::Var(v) => Ok(Self::Var(v.frobenius_map(power)?)),

0 commit comments

Comments
 (0)