summaryrefslogtreecommitdiff
path: root/builtin/index-pack.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-03-16 17:53:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-16 17:53:09 -0700
commit38bbb9e990e7290c286ad0a8ea250ab53470a374 (patch)
tree9643b7ecc0a51c01ade32df122f5d7e1d70d3aff /builtin/index-pack.c
parentMerge branch 'ab/racy-hooks' (diff)
parentstring-list API: change "nr" and "alloc" to "size_t" (diff)
downloadtgif-38bbb9e990e7290c286ad0a8ea250ab53470a374.tar.xz
Merge branch 'ab/string-list-count-in-size-t'
Count string_list items in size_t, not "unsigned int". * ab/string-list-count-in-size-t: string-list API: change "nr" and "alloc" to "size_t" gettext API users: don't explicitly cast ngettext()'s "n"
Diffstat (limited to 'builtin/index-pack.c')
-rw-r--r--builtin/index-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 2b2e6eeb82..8a5a644744 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -582,7 +582,7 @@ static void *unpack_data(struct object_entry *obj,
if (!n)
die(Q_("premature end of pack file, %"PRIuMAX" byte missing",
"premature end of pack file, %"PRIuMAX" bytes missing",
- (unsigned int)len),
+ len),
(uintmax_t)len);
from += n;
len -= n;