reftable/stack: index segments with `size_t`
commit6d5e80fba2397708671cee6d9c5e394c4c187659
authorPatrick Steinhardt <ps@pks.im>
Tue, 6 Feb 2024 06:35:35 +0000 (6 07:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Feb 2024 20:10:08 +0000 (6 12:10 -0800)
treeda7841148339a1bd17166395eb96cd0dbbafacc7
parentca63af0a248d31bf917d207722b284da41ffcee7
reftable/stack: index segments with `size_t`

We use `int`s to index into arrays of segments and track the length of
them, which is considered to be a code smell in the Git project. Convert
the code to use `size_t` instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/stack.c
reftable/stack.h
reftable/stack_test.c