From 6844275e82d2da20973c2a169e86cd29e19e7619 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Sun, 2 Apr 2017 17:42:28 +0200 Subject: [PATCH] silence MSVC compiler warning --- src/hashes/sha3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hashes/sha3.c b/src/hashes/sha3.c index fbe12df..1724b69 100644 --- a/src/hashes/sha3.c +++ b/src/hashes/sha3.c @@ -173,7 +173,7 @@ int sha3_shake_init(hash_state *md, int num) LTC_ARGCHK(md != NULL); if (num != 128 && num != 256) return CRYPT_INVALID_ARG; XMEMSET(&md->sha3, 0, sizeof(md->sha3)); - md->sha3.capacity_words = 2 * num / (8 * sizeof(ulong64)); + md->sha3.capacity_words = (unsigned short)(2 * num / (8 * sizeof(ulong64))); return CRYPT_OK; }