fix: check correct nibble values for alphabetic nibbles

This commit is contained in:
Anna 2023-08-31 01:18:23 -04:00
parent fae09f9ce6
commit fae0bad9fa
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ fn main() -> Result<()> {
let last = prefix.as_bytes()[prefix.len() - 1];
let idx = match last {
48..=57 => last - 48,
97..=102 => last - 97,
97..=102 => last - 97 + 10,
_ => unreachable!(),
};
let nibble = NIBBLES[idx as usize];