mirror of
https://github.com/status-im/constantine.git
synced 2025-02-22 08:58:05 +00:00
typo
This commit is contained in:
parent
26954f905a
commit
597dcb39aa
@ -325,7 +325,7 @@ func readHexChar(c: char): SecretWord {.inline.}=
|
||||
|
||||
var val = c - sw'0'
|
||||
val = val xor ((val xor (c - sw('a') + sw(10))) and lowercaseMask)
|
||||
val = val xor ((val xor (c - sw('a') + sw(10))) and uppercaseMask)
|
||||
val = val xor ((val xor (c - sw('A') + sw(10))) and uppercaseMask)
|
||||
val = val and sw(0xF) # Prevent overflow of invalid inputs
|
||||
|
||||
return val
|
||||
|
Loading…
x
Reference in New Issue
Block a user