diff options
| author | Taylor Blau <me@ttaylorr.com> | 2023-07-12 19:37:44 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-14 09:32:03 -0700 |
| commit | cc38127439be50ade60fb2db18c7f5f0cc170a36 (patch) | |
| tree | 7e9e2b8317129968c3d9af3190812cd317d2a6e8 /commit-graph.c | |
| parent | midx.c: prevent overflow in `nth_midxed_offset()` (diff) | |
| download | git-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
