Skip to content

Commit 97efdc3

Browse files
committed
fixup! survey: add object count summary
This is needed for the i686 builds where sizeof(size_t) != sizeof(uintmax_t). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1d11819 commit 97efdc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/survey.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,19 +392,19 @@ static void survey_report_plaintext_reachable_object_summary(struct survey_conte
392392
strvec_push(&table.header, _("Object Type"));
393393
strvec_push(&table.header, _("Count"));
394394

395-
fmt = xstrfmt("%"PRIuMAX"", objs->tags_nr);
395+
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->tags_nr);
396396
insert_table_rowv(&table, _("Tags"), fmt, NULL);
397397
free(fmt);
398398

399-
fmt = xstrfmt("%"PRIuMAX"", objs->commits_nr);
399+
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->commits_nr);
400400
insert_table_rowv(&table, _("Commits"), fmt, NULL);
401401
free(fmt);
402402

403-
fmt = xstrfmt("%"PRIuMAX"", objs->trees_nr);
403+
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->trees_nr);
404404
insert_table_rowv(&table, _("Trees"), fmt, NULL);
405405
free(fmt);
406406

407-
fmt = xstrfmt("%"PRIuMAX"", objs->blobs_nr);
407+
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->blobs_nr);
408408
insert_table_rowv(&table, _("Blobs"), fmt, NULL);
409409
free(fmt);
410410

0 commit comments

Comments
 (0)