Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Upcast size_t variables to uintmax_t when printing
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 8647db3d307c297448c91b328b1dabf19635fb94..88aaed7d49010e38fcf3f3fee726c18de99ddb36 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-3227,7
+3227,7
@@
static void emit_binary_diff_body(struct diff_options *o,
}
if (delta && delta_size < deflate_size) {
- char *s = xstrfmt("%
lu",
orig_size);
+ char *s = xstrfmt("%
"PRIuMAX , (uintmax_t)
orig_size);
emit_diff_symbol(o, DIFF_SYMBOL_BINARY_DIFF_HEADER_DELTA,
s, strlen(s), 0);
free(s);