aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-02-05 11:39:23 +0100
committerMattias Andrée <maandree@operamail.com>2013-02-05 11:39:23 +0100
commit8215959cfd17a599bf78be64833d115c921602d2 (patch)
tree9f70987ffec7f16be1bd453b0548d7ee687656c2
parentport `M.length` (diff)
downloadsha3sum-8215959cfd17a599bf78be64833d115c921602d2.tar.gz
sha3sum-8215959cfd17a599bf78be64833d115c921602d2.tar.bz2
sha3sum-8215959cfd17a599bf78be64833d115c921602d2.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--c/sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/sha3.c b/c/sha3.c
index b3c06e6..5f5a25b 100644
--- a/c/sha3.c
+++ b/c/sha3.c
@@ -396,7 +396,7 @@ extern void update(byte* msg, long msglen)
long i;
if (mptr + msglen > mlen)
- System.arraycopy(M, 0, M = new byte[(mlen += msglen) << 1], 0, mptr);
+ System.arraycopy(M, 0, M = new byte[mlen = mlen + msglen << 1], 0, mptr);
arraycopy(msg, 0, M, mptr, msglen);
long len = mptr += msglen;
len -= len % ((r * b) >> 3);