diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-19 10:24:41 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-19 10:24:41 +0300 |
commit | f5f0f68d61301c3ffb2f8da84f627547e8f9a94c (patch) | |
tree | 2c4e826363e1febaaf1c7fd6187e8fa714561c5d /ref-filter.c | |
parent | 502fe438bf83f5db6026c278767decf2ce6395b0 (diff) | |
parent | ca473cef9140f55d68d6758fe226ef47c216669c (diff) |
Merge branch 'tb/print-size-t-with-uintmax-format'
Code preparation to replace ulong vars with size_t vars where
appropriate.
* tb/print-size-t-with-uintmax-format:
Upcast size_t variables to uintmax_t when printing
Diffstat (limited to 'ref-filter.c')
-rw-r--r-- | ref-filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c index 6c70d797a9..5de616befe 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -882,7 +882,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")) { v->value = oi->size; - v->s = xstrfmt("%lu", oi->size); + v->s = xstrfmt("%"PRIuMAX , (uintmax_t)oi->size); } else if (deref) grab_objectname(name, &oi->oid, v, &used_atom[i]); |