Merge pull request #878 from terrelln/adjust
Don't `size -= 1` in ZSTD_adjustCParams()
This commit is contained in:
commit
96bb29aa14
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user