Skip to content

Commit

Permalink
stringified u64 width from 14 -> 16 (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
irfanbozkurt authored Jan 25, 2024
1 parent 533b201 commit ff2bdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math/src/unsigned_integer/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ impl<const NUM_LIMBS: usize> UnsignedInteger<NUM_LIMBS> {
pub fn to_hex(&self) -> String {
let mut hex_string = String::new();
for &limb in self.limbs.iter() {
hex_string.push_str(&format!("{:014X}", limb));
hex_string.push_str(&format!("{:016X}", limb));
}
hex_string.trim_start_matches('0').to_string()
}
Expand Down

0 comments on commit ff2bdb7

Please sign in to comment.