From: Yann Collet Date: Thu, 6 Feb 2025 00:28:52 +0000 (-0800) Subject: fix minor printf argument limitation on older mingw X-Git-Tag: v1.5.7^2~10^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c1850aa2df6024e930b257067401108fa268ef;p=thirdparty%2Fzstd.git fix minor printf argument limitation on older mingw which do not support `%zu` fields --- diff --git a/tests/fullbench.c b/tests/fullbench.c index 7d77bd176..12a27f48c 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -696,7 +696,7 @@ check_compressedSequences(const void* compressed, size_t cSize, const void* orig if (decompressed == NULL) return 2; decSize = ZSTD_decompress(decompressed, origSize, compressed, cSize); - if (decSize != origSize) { free(decompressed); DISPLAY("ZSTD_decompress failed (%zu) ", decSize); return 1; } + if (decSize != origSize) { free(decompressed); DISPLAY("ZSTD_decompress failed (%u) ", (unsigned)decSize); return 1; } diff = memcmp(decompressed, orig, origSize); if (diff) { free(decompressed); return 1; } @@ -904,7 +904,7 @@ static int benchMem(unsigned scenarioID, if (verif_f) { size_t const vRes = verif_f(dst, newResult.sumOfReturn, origSrc, origSrcSize); if (vRes) { - DISPLAY(" validation failed ! (%zu)\n", vRes); + DISPLAY(" validation failed ! (%u)\n", (unsigned)vRes); break; } }