diff --git a/yacl/math/galois_field/mpint_field/mpint_field.cc b/yacl/math/galois_field/mpint_field/mpint_field.cc index fae3dc9d..9e5f9b80 100644 --- a/yacl/math/galois_field/mpint_field/mpint_field.cc +++ b/yacl/math/galois_field/mpint_field/mpint_field.cc @@ -87,7 +87,6 @@ void MPIntField::NegInplace(MPInt *x) const { WEAK_ENFORCE(IsInField(*x), "x is not a valid field element, x={}", *x); x->NegateInplace(); AddInplace(x, mod_); - x->DecrOne(); } MPInt MPIntField::Inv(const MPInt &x) const { return x.InvertMod(mod_); }