ref-filter: give uintmax_t to format with %PRIuMAX

As long as we are casting to a wider type, we should cast to the one with the correct signed-ness. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 10, 2019 at 10:15 UTC f2ddd9e53f3202b70352d65eee60ad71581f129f
1 file changed +1 -1
ref-filter.c
+1 -1
@@ -897,7 +897,7 @@ static void grab_common_values(struct atom_value *val, int deref, struct expand_
897 v->s = xstrdup(type_name(oi->type));
898 else if (!strcmp(name, "objectsize:disk")) {
899 v->value = oi->disk_size;
900 - v->s = xstrfmt("%"PRIuMAX, (intmax_t)oi->disk_size);
900 + v->s = xstrfmt("%"PRIuMAX, (uintmax_t)oi->disk_size);
901 } else if (!strcmp(name, "objectsize")) {
902 v->value = oi->size;
903 v->s = xstrfmt("%lu", oi->size);