From 142acbdea7aa69842c71a84434ee3ee844132295 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 6 Jun 2016 00:46:56 +0200 Subject: [PATCH] fixed minor visual conversion warning --- lib/compress/zstd_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 39f07396..da0409f8 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -269,7 +269,7 @@ static size_t ZSTD_resetCCtx_advanced (ZSTD_CCtx* zc, const U32 hashLog3 = (params.cParams.searchLength>3) ? 0 : ( (!frameContentSize || frameContentSize >= 8192) ? ZSTD_HASHLOG3_MAX : ((frameContentSize >= 2048) ? ZSTD_HASHLOG3_MIN + 1 : ZSTD_HASHLOG3_MIN) ); - const size_t h3Size = 1 << hashLog3; + const size_t h3Size = ((size_t)1) << hashLog3; const size_t tableSpace = (chainSize + hSize + h3Size) * sizeof(U32); /* Check if workSpace is large enough, alloc a new one if needed */