From aaa48e1bbe053199dc49fcb5bbd565b08d5453ef Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Feb 2013 20:33:54 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- c/sha3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c') diff --git a/c/sha3.c b/c/sha3.c index de05328..47867b8 100644 --- a/c/sha3.c +++ b/c/sha3.c @@ -382,7 +382,7 @@ extern void initialise(long bitrate, long capacity, long output) w = b / 25; l = lb(w); nr = 12 + (l << 1); - wmod = (1L << w) - 1L; + wmod = w == 64 ? -1LL ? (1LL << w) - 1LL; S = (llong*)malloc(25 * sizeof(llong)); M = (byte*)malloc(mlen = (r * b) >> 2); mptr = 0; -- cgit v1.2.3-70-g09d2