diff --git a/uint/src/uint.rs b/uint/src/uint.rs index 64990bf5c..b15726b72 100644 --- a/uint/src/uint.rs +++ b/uint/src/uint.rs @@ -642,8 +642,8 @@ macro_rules! construct_uint { /// Zero (additive identity) of this type. #[inline] - pub fn zero() -> Self { - From::from(0u64) + pub const fn zero() -> Self { + Self([0; $n_words]) } /// One (multiplicative identity) of this type.