зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
59012fe5e8
Коммит
f2ddd9e53f
|
@ -897,7 +897,7 @@ static void grab_common_values(struct atom_value *val, int deref, struct expand_
|
|||
v->s = xstrdup(type_name(oi->type));
|
||||
else if (!strcmp(name, "objectsize:disk")) {
|
||||
v->value = oi->disk_size;
|
||||
v->s = xstrfmt("%"PRIuMAX, (intmax_t)oi->disk_size);
|
||||
v->s = xstrfmt("%"PRIuMAX, (uintmax_t)oi->disk_size);
|
||||
} else if (!strcmp(name, "objectsize")) {
|
||||
v->value = oi->size;
|
||||
v->s = xstrfmt("%lu", oi->size);
|
||||
|
|
Загрузка…
Ссылка в новой задаче