From 7e2b097f15ef0363c799d6303c93ee7c1854a659 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Tue, 5 Dec 2023 22:06:41 +0000 Subject: [PATCH] igzip: fix build warnings on Windows Signed-off-by: Pablo de Lara --- igzip/igzip_rand_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/igzip/igzip_rand_test.c b/igzip/igzip_rand_test.c index 5b734a1..6345491 100644 --- a/igzip/igzip_rand_test.c +++ b/igzip/igzip_rand_test.c @@ -33,6 +33,8 @@ #include #include #include +#include + #include "igzip_lib.h" #include "checksum_test_ref.h" #include "inflate_std_vects.h" @@ -433,7 +435,7 @@ void print_uint8_t(uint8_t * array, uint64_t length) const int line_size = 16; int i; - printf("Length = %lu", length); + printf("Length = %" PRIu64 "", length); for (i = 0; i < length; i++) { if ((i % line_size) == 0) printf("\n0x%08x\t", i);