mirror of
https://github.com/facebook/zstd.git
synced 2025-12-06 00:02:05 -05:00
Update zstd_compress.c
This commit is contained in:
parent
d514281e73
commit
aec8b27fff
@ -544,7 +544,6 @@ size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* CCtxParams,
|
|||||||
CCtxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* 0 == default */
|
CCtxParams->compressionLevel = ZSTD_CLEVEL_DEFAULT; /* 0 == default */
|
||||||
else
|
else
|
||||||
CCtxParams->compressionLevel = value;
|
CCtxParams->compressionLevel = value;
|
||||||
}
|
|
||||||
if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel;
|
if (CCtxParams->compressionLevel >= 0) return (size_t)CCtxParams->compressionLevel;
|
||||||
return 0; /* return type (size_t) cannot represent negative values */
|
return 0; /* return type (size_t) cannot represent negative values */
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user