From 85b02bf142cafcde1d14a681cb2d93028be7cf7a Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 4 Dec 2018 15:57:16 -0800 Subject: [PATCH] fixed silent conversion warning --- lib/decompress/zstd_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 251de122..d2cd8a30 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -1301,7 +1301,7 @@ size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter dParam, int value switch(dParam) { case ZSTD_d_windowLogMax: CHECK_DBOUNDS(ZSTD_d_windowLogMax, value); - dctx->maxWindowSize = 1 << value; + dctx->maxWindowSize = ((size_t)1) << value; return 0; case ZSTD_d_format: CHECK_DBOUNDS(ZSTD_d_format, value);