]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
Upcast size_t variables to uintmax_t when printing
[thirdparty/git.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);