aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2023-07-12 19:37:44 -0400
committerJunio C Hamano <gitster@pobox.com>2023-07-14 09:32:03 -0700
commitcc38127439be50ade60fb2db18c7f5f0cc170a36 (patch)
tree7e9e2b8317129968c3d9af3190812cd317d2a6e8 /commit-graph.c
parentmidx.c: prevent overflow in `nth_midxed_offset()` (diff)
downloadgit-cc38127439be50ade60fb2db18c7f5f0cc170a36.tar.gz
git-cc38127439be50ade60fb2db18c7f5f0cc170a36.zip
midx.c: store `nr`, `alloc` variables as `size_t`'s
In the `write_midx_context` structure, we use two `uint32_t`'s to track the length and allocated size of the packs, and one `uint32_t` to track the number of objects in the MIDX. In practice, having these be 32-bit unsigned values shouldn't cause any problems since we are unlikely to have that many objects or packs in any real-world repository. But these values should be `size_t`'s, so change their type to reflect that. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions