summaryrefslogtreecommitdiffstats
path: root/commit-reach.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-27 11:46:21 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-27 17:10:41 +0100
commit44945dfe867e56aab1685a0f371665273291a2af (patch)
treee4e6c4cf1d29dbe1e78807958c4686df4cf5d02f /commit-reach.c
parentMerge https://github.com/j6t/git-gui (diff)
downloadgit-44945dfe867e56aab1685a0f371665273291a2af.tar.xz
git-44945dfe867e56aab1685a0f371665273291a2af.zip
prio-queue: fix type of `insertion_ctr`
In 62e745ced2 (prio-queue: use size_t rather than int for size, 2024-12-20), we have converted `struct prio_queue` to use `size_t` to track the number of entries in the queue as well as the allocated size of the underlying array. There is one more counter though, namely the insertion counter, that is still using an `unsigned` instead of a `size_t`. This is unlikely to ever be a problem, but it makes one wonder why some indices use `size_t` while others use `unsigned`. Furthermore, the mentioned commit stated the intent to also adapt these variables, but seemingly forgot to do so. Fix the issue by converting those counters to use `size_t`, as well. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
0 files changed, 0 insertions, 0 deletions