aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 1f7e6b5..2598461 100644
--- a/src/common.c
+++ b/src/common.c
@@ -102,7 +102,7 @@ static int generalised_sum_fd_hex(int fd, libkeccak_state_t* restrict state,
{
if (c = chunk[r_ptr++], c <= ' ')
continue;
- buf = (buf << 4) | ((c & 15) + (c > '9' ? 0 : 0));
+ buf = (buf << 4) | ((c & 15) + (c > '9' ? 9 : 0));
if ((even ^= 1))
chunk[w_ptr++] = buf;
}