diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-03-17 01:53:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-17 01:53:09 +0100 |
commit | 38bbb9e990e7290c286ad0a8ea250ab53470a374 (patch) | |
tree | 9643b7ecc0a51c01ade32df122f5d7e1d70d3aff /builtin/index-pack.c | |
parent | Merge branch 'ab/racy-hooks' (diff) | |
parent | string-list API: change "nr" and "alloc" to "size_t" (diff) | |
download | git-38bbb9e990e7290c286ad0a8ea250ab53470a374.tar.xz git-38bbb9e990e7290c286ad0a8ea250ab53470a374.zip |
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.c | 2 |
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; |