From 7bdf1f3a154f6b212f3cb891caa7fc1df7492d0d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Nov 2014 03:31:33 +0100 Subject: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2