fixed silent conversion warning

dev
Yann Collet 2018-12-04 15:57:16 -08:00
parent 2fb8d1a392
commit 85b02bf142
1 changed files with 1 additions and 1 deletions

View File

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