reftable/writer: use correct type to iterate through index entries
commit9ebb2d7b08c9f17a846b7c90082c9d15b9f6c9d2
authorPatrick Steinhardt <ps@pks.im>
Thu, 1 Feb 2024 07:52:00 +0000 (1 08:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Feb 2024 19:11:32 +0000 (1 11:11 -0800)
tree5c7d1228fc3cac48a657ab31c37f355e1701f90d
parentd55fc5128b26a64c2e7b6612d0442c9e924696e8
reftable/writer: use correct type to iterate through index entries

The reftable writer is tracking the number of blocks it has to index via
the `index_len` variable. But while this variable is of type `size_t`,
some sites use an `int` to loop through the index entries.

Convert the code to consistently use `size_t`.

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