]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Nit: Fix Size Type for 32-bit
authorW. Felix Handte <w@felixhandte.com>
Tue, 12 May 2020 22:03:31 +0000 (18:03 -0400)
committerW. Felix Handte <w@felixhandte.com>
Tue, 12 May 2020 22:03:31 +0000 (18:03 -0400)
lib/compress/zstd_compress.c

index bf9901dcd6f4c78fc2f0ed5e54805ef9384d21d6..cd322e0d5a0c83bf135b678fab9c9ff1e49f75c9 100644 (file)
@@ -1132,7 +1132,7 @@ static size_t ZSTD_estimateCCtxSize_usingCCtxParams_internal(
         const int isStatic,
         const size_t buffInSize,
         const size_t buffOutSize,
-        const size_t pledgedSrcSize)
+        const U64 pledgedSrcSize)
 {
     size_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << cParams->windowLog), pledgedSrcSize));
     size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize);