From 650b607f339cd0ffa32e205e4501ec3fcfa88fbf Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 23 Nov 2019 16:24:08 +0100 Subject: Fix various data type problems - Make sure the mockup constant for AT_FDCWD is actualy an int - Don't use %lld printf format specified, mscrt doesn't have that - On 64 bit windows, use %I64u format specified for size_t - Seperate the overflow macro stuff from the form specifier stuff - Move the whole thing to compat.h and clean it up a little so it becomes readable. Signed-off-by: David Oberhollenzer --- difftool/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'difftool/super.c') diff --git a/difftool/super.c b/difftool/super.c index d0e2993..111412a 100644 --- a/difftool/super.c +++ b/difftool/super.c @@ -36,8 +36,8 @@ static void print_value_difference(const char *name, sqfs_u64 a, sqfs_u64 b) c = '-'; diff = a - b; } - fprintf(stdout, "%s: %c%llu\n", name, c, - (unsigned long long)diff); + fprintf(stdout, "%s: %c%lu\n", name, c, + (unsigned long)diff); } } -- cgit v1.2.3