Skip to content

Commit

Permalink
size_t: singleton change of variable type mid call stack
Browse files Browse the repository at this point in the history
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 git-for-windows#2434, GfW git-for-windows#2179, git-for-windows#1848, git-for-windows#3306.

Signed-off-by: Philip Oakley <[email protected]>
  • Loading branch information
PhilipOakley committed Oct 21, 2021
1 parent 3f28c5f commit 6b3deef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/unpack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b3deef

Please sign in to comment.