]> git.99rst.org Git - git.git/commit
reftable: change the type of array indices to 'size_t' in reftable/pq.c
authorChandra Pratap <redacted>
Thu, 1 Aug 2024 10:59:43 +0000 (16:29 +0530)
committerJunio C Hamano <redacted>
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 <redacted>
Mentored-by: Christian Couder <redacted>
Signed-off-by: Chandra Pratap <redacted>
Signed-off-by: Junio C Hamano <redacted>
reftable/pq.c
git clone https://git.99rst.org/PROJECT