mirror of
https://github.com/facebook/zstd.git
synced 2025-10-04 00:02:33 -04:00
fixed silent conversion warning
This commit is contained in:
parent
2fb8d1a392
commit
85b02bf142
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user