diff --git a/src/identities.rs b/src/identities.rs index f036943..c30cd1d 100644 --- a/src/identities.rs +++ b/src/identities.rs @@ -92,7 +92,7 @@ impl ConstZero for Wrapping where Wrapping: Add>, { - const ZERO: Self = Self(T::ZERO); + const ZERO: Self = Wrapping(T::ZERO); } /// Defines a multiplicative identity element for `Self`. @@ -193,7 +193,7 @@ impl ConstOne for Wrapping where Wrapping: Mul>, { - const ONE: Self = Self(T::ONE); + const ONE: Self = Wrapping(T::ONE); } // Some helper functions provided for backwards compatibility.