@@ -357,22 +357,22 @@ static void survey_report_plaintext_refs(struct survey_context *ctx)
357
357
strvec_push (& table .header , _ ("Count" ));
358
358
359
359
if (ctx -> opts .refs .want_all_refs || ctx -> opts .refs .want_branches ) {
360
- char * fmt = xstrfmt ("%" PRIuMAX "" , refs -> branches_nr );
360
+ char * fmt = xstrfmt ("%" PRIuMAX "" , ( uintmax_t ) refs -> branches_nr );
361
361
insert_table_rowv (& table , _ ("Branches" ), fmt , NULL );
362
362
free (fmt );
363
363
}
364
364
365
365
if (ctx -> opts .refs .want_all_refs || ctx -> opts .refs .want_remotes ) {
366
- char * fmt = xstrfmt ("%" PRIuMAX "" , refs -> remote_refs_nr );
366
+ char * fmt = xstrfmt ("%" PRIuMAX "" , ( uintmax_t ) refs -> remote_refs_nr );
367
367
insert_table_rowv (& table , _ ("Remote refs" ), fmt , NULL );
368
368
free (fmt );
369
369
}
370
370
371
371
if (ctx -> opts .refs .want_all_refs || ctx -> opts .refs .want_tags ) {
372
- char * fmt = xstrfmt ("%" PRIuMAX "" , refs -> tags_nr );
372
+ char * fmt = xstrfmt ("%" PRIuMAX "" , ( uintmax_t ) refs -> tags_nr );
373
373
insert_table_rowv (& table , _ ("Tags (all)" ), fmt , NULL );
374
374
free (fmt );
375
- fmt = xstrfmt ("%" PRIuMAX "" , refs -> tags_annotated_nr );
375
+ fmt = xstrfmt ("%" PRIuMAX "" , ( uintmax_t ) refs -> tags_annotated_nr );
376
376
insert_table_rowv (& table , _ ("Tags (annotated)" ), fmt , NULL );
377
377
free (fmt );
378
378
}
0 commit comments