]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Debug Logging in 32-bit Build
authorW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 23:19:39 +0000 (19:19 -0400)
committerW. Felix Handte <w@felixhandte.com>
Fri, 11 Sep 2020 02:10:02 +0000 (22:10 -0400)
tests/fuzzer.c

index 2c37bb0f33ea5ba50f15da4af54df0d2b748497a..579aeed94236705abc50197173eb862f624bd1b9 100644 (file)
@@ -2955,7 +2955,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
                     int const enableDDS = enableDedicatedDictSearch[i];
                     ZSTD_CDict* cdict;
 
-                    DISPLAYLEVEL(5, "\n  dictSize %lu cLevel %d iter %d ", dictSize, cLevel, i);
+                    DISPLAYLEVEL(5, "\n  dictSize %u cLevel %d iter %d ", (U32)dictSize, cLevel, i);
 
                     ZSTD_CCtxParams_init(cctx_params, cLevel);
                     CHECK_Z(ZSTD_CCtxParams_setParameter(cctx_params, ZSTD_c_enableDedicatedDictSearch, enableDDS));
@@ -2970,7 +2970,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
                     CHECK_Z(cSize);
                     CHECK_Z(ZSTD_decompress_usingDict(dctx, decodedBuffer, CNBuffSize, compressedBuffer, cSize, dict, dictSize));
 
-                    DISPLAYLEVEL(5, "compressed to %lu bytes ", cSize);
+                    DISPLAYLEVEL(5, "compressed to %u bytes ", (U32)cSize);
 
                     CHECK_Z(ZSTD_CCtx_reset(cctx, ZSTD_reset_session_and_parameters));
                     ZSTD_freeCDict(cdict);