Merge pull request #878 from terrelln/adjust

Don't `size -= 1` in ZSTD_adjustCParams()
This commit is contained in:
Yann Collet 2017-09-30 14:52:54 -07:00 committed by GitHub
commit 96bb29aa14

View File

@ -651,7 +651,7 @@ ZSTD_compressionParameters ZSTD_adjustCParams_internal(ZSTD_compressionParameter
if (dictSize && (srcSize+1<2) /* srcSize unknown */ )
srcSize = minSrcSize; /* presumed small when there is a dictionary */
else
else if (srcSize == 0)
srcSize -= 1; /* unknown 0 => -1ULL : presumed large */
/* resize windowLog if input is small enough, to use less memory */