aboutsummaryrefslogtreecommitdiffstats
path: root/c/sha3.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-05-03 02:57:34 +0200
committerMattias Andrée <maandree@operamail.com>2013-05-03 02:57:34 +0200
commit4e0ea4634f06bfc7389a435b56366f71894a8d9f (patch)
treea597b0a7c96e3ef5cdbbd40cca4e68cf1e904b52 /c/sha3.c
parentm (diff)
downloadsha3sum-4e0ea4634f06bfc7389a435b56366f71894a8d9f.tar.gz
sha3sum-4e0ea4634f06bfc7389a435b56366f71894a8d9f.tar.bz2
sha3sum-4e0ea4634f06bfc7389a435b56366f71894a8d9f.tar.xz
apply change made to pure-java to other versions
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'c/sha3.c')
-rw-r--r--c/sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/sha3.c b/c/sha3.c
index 72f3e83..a5e8f69 100644
--- a/c/sha3.c
+++ b/c/sha3.c
@@ -619,7 +619,7 @@ extern byte* digest(byte* msg, long msglen)
byte* message;
byte* rc;
long rr = r >> 3, len;
- long nn = n >> 3, olen;
+ long nn = (n + 7) >> 3, olen;
long ww = w >> 3, ni;
long i, j = 0, ptr = 0, _;