completion: disable dwim on "git switch -d"
[gitweb.git] / fast-import.c
index 71b6cba00f96af4abb2dd628344d78be9640ee88..b7ba755c2b88df35d5e50272d7b9341134625c56 100644 (file)
@@ -2813,8 +2813,8 @@ static void cat_blob(struct object_entry *oe, struct object_id *oid)
                die("Object %s is a %s but a blob was expected.",
                    oid_to_hex(oid), type_name(type));
        strbuf_reset(&line);
-       strbuf_addf(&line, "%s %s %lu\n", oid_to_hex(oid),
-                                               type_name(type), size);
+       strbuf_addf(&line, "%s %s %"PRIuMAX"\n", oid_to_hex(oid),
+                   type_name(type), (uintmax_t)size);
        cat_blob_write(line.buf, line.len);
        strbuf_release(&line);
        cat_blob_write(buf, size);