From 597dcb39aa95bc652e5146cd012be7f6dcc336c6 Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Mon, 28 Feb 2022 14:04:22 +0100 Subject: [PATCH] typo --- constantine/math/io/io_bigints.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constantine/math/io/io_bigints.nim b/constantine/math/io/io_bigints.nim index 2fc1b93..7d737ed 100644 --- a/constantine/math/io/io_bigints.nim +++ b/constantine/math/io/io_bigints.nim @@ -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