diff --git a/bigint/src/biguint.rs b/bigint/src/biguint.rs index f3a1c23..1c609c2 100644 --- a/bigint/src/biguint.rs +++ b/bigint/src/biguint.rs @@ -243,6 +243,7 @@ impl Num for BigUint { b'0'...b'9' => b - b'0', b'a'...b'z' => b - b'a' + 10, b'A'...b'Z' => b - b'A' + 10, + b'_' => continue, _ => u8::MAX, }; if d < radix as u8 {