aboutsummaryrefslogtreecommitdiff
path: root/difftool
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:24:08 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:46:49 +0100
commit650b607f339cd0ffa32e205e4501ec3fcfa88fbf (patch)
treec3ba2d5ac9709fa12e8d750a8bd82e727085c464 /difftool
parentb4226fbb569bd39fa0198c0e823400836dd6cc2d (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'difftool')
-rw-r--r--difftool/super.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}