aboutsummaryrefslogtreecommitdiff
path: root/reftable
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-03-04 11:48:47 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-04 10:19:30 -0800
commit5c11529c665fa2c206c00781ddf8710c4000cbda (patch)
tree92aa597ffcdc49bcca7bed486dd788807ea0739b /reftable
parenta2082dbdd315aa4dd3f315545e5b3ab3b3e2d894 (diff)
downloadgit-5c11529c665fa2c206c00781ddf8710c4000cbda.tar.xz
reftable/pq: use `size_t` to track iterator index
The reftable priority queue is used by the merged iterator to yield records from its sub-iterators in the expected order. Each entry has a record corresponding to such a sub-iterator as well as an index that indicates which sub-iterator the record belongs to. But while the sub-iterators are tracked with a `size_t`, we store the index as an `int` in the entry. Fix this and use `size_t` consistently. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable')
-rw-r--r--reftable/pq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/pq.h b/reftable/pq.h
index e85bac9b52..9e25a43a36 100644
--- a/reftable/pq.h
+++ b/reftable/pq.h
@@ -12,7 +12,7 @@ https://developers.google.com/open-source/licenses/bsd
#include "record.h"
struct pq_entry {
- int index;
+ size_t index;
struct reftable_record rec;
};