Support working-tree-encoding "UTF-16LE-BOM"
[gitweb.git] / ref-filter.c
index 6c70d797a978077e27c13da7291e29c3947d3961..5de616befe46e64b014ebe7c3feb5913bc8af2df 100644 (file)
@@ -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]);