ZSTD_adjustCParams_internal : minor optimization

This commit is contained in:
Yann Collet 2017-09-30 15:02:40 -07:00
parent 96bb29aa14
commit dc404119e5

View File

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