]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: change the type of array indices to 'size_t' in reftable/pq.c
authorChandra Pratap <chandrapratap3519@gmail.com>
Thu, 1 Aug 2024 10:59:43 +0000 (16:29 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Aug 2024 16:07:28 +0000 (09:07 -0700)
commit2a85906348d324056f8d147a51156d9901a9675f
tree7afaa37876a3bd865fe301b63428b8beb2105c13
parentf1b60b7c666416b00f96e3f58552bfe52ca73130
reftable: change the type of array indices to 'size_t' in reftable/pq.c

The variables 'i', 'j', 'k' and 'min' are used as indices for
'pq->heap', which is an array. Additionally, 'pq->len' is of
type 'size_t' and is often used to assign values to these
variables. Hence, change the type of these variables from 'int'
to 'size_t'.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/pq.c