mirror of
https://github.com/codex-storage/constantine.git
synced 2025-01-13 12:34:31 +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'
|
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 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
|
val = val and sw(0xF) # Prevent overflow of invalid inputs
|
||||||
|
|
||||||
return val
|
return val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user