We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4677f82 commit c16f7adCopy full SHA for c16f7ad
bitcoin/src/pow.rs
@@ -434,7 +434,7 @@ impl U256 {
434
435
// Caller to ensure `s` does not contain a prefix.
436
fn from_hex_internal(s: &str) -> Result<Self, ParseIntError> {
437
- let (high, low) = if s.len() < 32 {
+ let (high, low) = if s.len() <= 32 {
438
let low = parse::hex_u128(s)?;
439
(0, low)
440
} else {
0 commit comments