Merge branch 'sb/cocci-pending'
[gitweb.git] / builtin / ls-tree.c
index fe3b952cb3007d12c2e94a08b10486ed301c4769..7d581d6463dc534606d27b1998c27991a800d6f1 100644 (file)
@@ -100,7 +100,7 @@ static int show_tree(const struct object_id *oid, struct strbuf *base,
                                                  "BAD");
                                else
                                        xsnprintf(size_text, sizeof(size_text),
-                                                 "%lu", size);
+                                                 "%"PRIuMAX, (uintmax_t)size);
                        } else
                                xsnprintf(size_text, sizeof(size_text), "-");
                        printf("%06o %s %s %7s\t", mode, type,