From: Yann Collet Date: Sat, 30 Sep 2017 22:02:40 +0000 (-0700) Subject: ZSTD_adjustCParams_internal : minor optimization X-Git-Tag: v1.3.2~3^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc404119e5377ce18e49bedeeab3f0ff8b815d87;p=thirdparty%2Fzstd.git ZSTD_adjustCParams_internal : minor optimization --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 51cdeaf03..2511ab29e 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -652,7 +652,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 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 */ if ( (srcSize < maxWindowResize)