diff options
author | Jeff King <peff@peff.net> | 2020-11-13 00:07:01 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-16 13:41:35 -0800 |
commit | a9bc372ef8210e60d924ec6c0b46624c6d0a4033 (patch) | |
tree | 0bf3ffe7c78e4f19e508785e98254b6a3c9049d9 /Documentation/config/notes.txt | |
parent | compute pack .idx byte offsets using size_t (diff) | |
download | tgif-a9bc372ef8210e60d924ec6c0b46624c6d0a4033.tar.xz |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/notes.txt')
0 files changed, 0 insertions, 0 deletions