use size_t to store pack .idx byte offsets
authorJeff King <redacted>
Fri, 13 Nov 2020 05:07:01 +0000 (00:07 -0500)
committerJunio C Hamano <redacted>
Mon, 16 Nov 2020 21:41:35 +0000 (13:41 -0800)
commita9bc372ef8210e60d924ec6c0b46624c6d0a4033
tree0bf3ffe7c78e4f19e508785e98254b6a3c9049d9
parentf86f769550ef7fb5162a9cd4be5e2be7981d063b
use size_t to store pack .idx byte offsets

We sometimes store the offset into a pack .idx file as an "unsigned
long", but the mmap'd size of a pack .idx file can exceed 4GB. This is
sufficient on LP64 systems like Linux, but will be too small on LLP64
systems like Windows, where "unsigned long" is still only 32 bits. Let's
use size_t, which is a better type for an offset into a memory buffer.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/pack-redundant.c
packfile.c
git clone https://git.99rst.org/PROJECT