From 6b3deef177e4381a9ef9970a9a299fe21d5071a7 Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Thu, 21 Oct 2021 17:33:38 +0100 Subject: [PATCH] size_t: singleton change of variable type mid call stack Test whether the Git CI system allows, or fails, when LLP64 systems need variable type coercion from size_t back to unsigned long. All the *nix systems should pass, but compile checks for LLP64 systems may fail. This is a crucial information spike for Git files > 4Gb, i.e. Issues: git-lfs #2434, GfW #2179, #1848, #3306. Signed-off-by: Philip Oakley --- builtin/unpack-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c index 4a9466295ba10d..ad3b494bb2f1a6 100644 --- a/builtin/unpack-objects.c +++ b/builtin/unpack-objects.c @@ -320,7 +320,7 @@ static void added_object(unsigned nr, enum object_type type, } } -static void unpack_non_delta_entry(enum object_type type, unsigned long size, +static void unpack_non_delta_entry(enum object_type type, size_t size, unsigned nr) { void *buf = get_data(size);