Merge branch 'tb/print-size-t-with-uintmax-format'
Code preparation to replace ulong vars with size_t vars where appropriate. * tb/print-size-t-with-uintmax-format: Upcast size_t variables to uintmax_t when printing
This commit is contained in:
2
diff.c
2
diff.c
@ -3228,7 +3228,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);
|
||||
|
Reference in New Issue
Block a user