From ce76957a10070c132a8adfbe2e7d3f12395b4caa Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 16 Aug 2016 04:04:31 +0200 Subject: Windows: Fix various issues detected by static analysis. --- src/Crypto/Streebog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Crypto/Streebog.c') diff --git a/src/Crypto/Streebog.c b/src/Crypto/Streebog.c index 9430bfa3..d13d58d2 100644 --- a/src/Crypto/Streebog.c +++ b/src/Crypto/Streebog.c @@ -2328,9 +2328,9 @@ stage3(STREEBOG_CTX *CTX) memset(buf, 0x00, sizeof buf); #ifndef __GOST3411_BIG_ENDIAN__ - buf[0] = CTX->bufsize << 3; + buf[0] = ((unsigned long long) CTX->bufsize) << 3; #else - buf[0] = BSWAP64(CTX->bufsize << 3); + buf[0] = BSWAP64(((unsigned long long) CTX->bufsize) << 3); #endif pad(CTX); -- cgit v1.2.3