stash: setup default diff output format if necessary
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index e38d1ecaf45d1b79eeab093ba86e34fe3bbd931a..dc9965e836cd49c46a01293ef1d678a619b8f997 100644 (file)
--- a/diff.c
+++ b/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);