diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-19 10:24:41 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-19 10:24:41 +0300 |
commit | f5f0f68d61301c3ffb2f8da84f627547e8f9a94c (patch) | |
tree | 2c4e826363e1febaaf1c7fd6187e8fa714561c5d /diff.c | |
parent | 502fe438bf83f5db6026c278767decf2ce6395b0 (diff) | |
parent | ca473cef9140f55d68d6758fe226ef47c216669c (diff) |
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
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |