summaryrefslogtreecommitdiffstats
path: root/tests/frametest.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2019-04-18 23:06:02 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2019-04-18 23:07:16 (GMT)
commit0b876db6d42ec22da0c635e97a0d690908f2104a (patch)
tree2ee943a56f12698153a5e0c305a65a2f7016ad7a /tests/frametest.c
parent5a6d72447ae998b387794df1135023689aa89995 (diff)
downloadlz4-0b876db6d42ec22da0c635e97a0d690908f2104a.zip
lz4-0b876db6d42ec22da0c635e97a0d690908f2104a.tar.gz
lz4-0b876db6d42ec22da0c635e97a0d690908f2104a.tar.bz2
address a few minor Visual warnings
and created target cxx17build
Diffstat (limited to 'tests/frametest.c')
-rw-r--r--tests/frametest.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index 9f7cb8d..bf95beb 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -667,8 +667,8 @@ int basicTests(U32 seed, double compressibility)
for (blockSizeID = 4; blockSizeID < 8; ++blockSizeID) {
result = LZ4F_getBlockSize(blockSizeID);
CHECK(result);
- DISPLAYLEVEL(3, "Returned block size of %zu bytes for blockID %u \n",
- result, blockSizeID);
+ DISPLAYLEVEL(3, "Returned block size of %u bytes for blockID %u \n",
+ (unsigned)result, blockSizeID);
}
/* Test an invalid input that's too large */
@@ -770,7 +770,8 @@ static void locateBuffDiff(const void* buff1, const void* buff2, size_t size, un
const BYTE* b2=(const BYTE*)buff2;
DISPLAY("locateBuffDiff: looking for error position \n");
if (nonContiguous) {
- DISPLAY("mode %u: non-contiguous output (%zu bytes), cannot search \n", nonContiguous, size);
+ DISPLAY("mode %u: non-contiguous output (%u bytes), cannot search \n",
+ nonContiguous, (unsigned)size);
return;
}
while (p < size && b1[p]==b2[p]) p++;