diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-12-27 11:46:22 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-27 17:11:15 +0100 |
commit | 95c09e4d07492fa9e4ad951a268b4ea6bae69038 (patch) | |
tree | fd5cdd5c33cacdb2b1c34f4d8816769919645168 /iterator.h | |
parent | prio-queue: fix type of `insertion_ctr` (diff) | |
download | git-95c09e4d07492fa9e4ad951a268b4ea6bae69038.tar.xz git-95c09e4d07492fa9e4ad951a268b4ea6bae69038.zip |
commit-reach: fix index used to loop through unsigned integer
In 62e745ced2 (prio-queue: use size_t rather than int for size,
2024-12-20), we refactored `struct prio_queue` to track the number of
contained entries via a `size_t`. While the refactoring adapted one of
the users of that variable, it forgot to also adapt "commit-reach.c"
accordingly. This was missed because that file has -Wsign-conversion
disabled.
Fix the issue by using a `size_t` to iterate through entries.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'iterator.h')
0 files changed, 0 insertions, 0 deletions