From 95b90ca932d69a5c4189435c1e359170a2b8e88a Mon Sep 17 00:00:00 2001 From: Mario Rugiero Date: Thu, 5 Oct 2023 11:28:37 -0300 Subject: [PATCH] bits -> usize --- crates/stark-felt/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/stark-felt/src/lib.rs b/crates/stark-felt/src/lib.rs index e321ec1..92d162c 100644 --- a/crates/stark-felt/src/lib.rs +++ b/crates/stark-felt/src/lib.rs @@ -224,8 +224,8 @@ impl Felt { } /// Count the minimum number of bits needed to express `self`'s representative. - pub fn bits(&self) -> u32 { - self.0.representative().bits_le() as u32 + pub fn bits(&self) -> usize { + self.0.representative().bits_le() } }