Skip to content

Commit

Permalink
bits -> usize
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen committed Oct 5, 2023
1 parent af3320c commit 95b90ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/stark-felt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 95b90ca

Please sign in to comment.