silence MSVC compiler warning

This commit is contained in:
Karel Miko 2017-04-02 17:42:28 +02:00
parent df733f79fa
commit 6844275e82

View File

@ -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;
}