diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-12-27 11:46:25 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-27 08:11:45 -0800 |
| commit | 85ee0680e2d5d667919e06394ca7622f09652310 (patch) | |
| tree | b7bec04951c0310b0df8a88e7ff24dd77e1eeca7 /ref-filter.c | |
| parent | commit-reach: use `size_t` to track indices in `remove_redundant()` (diff) | |
| download | git-85ee0680e2d5d667919e06394ca7622f09652310.tar.gz git-85ee0680e2d5d667919e06394ca7622f09652310.zip | |
commit-reach: use `size_t` to track indices in `get_reachable_subset()`
Similar as with the preceding commit, adapt `get_reachable_subset()` so
that it tracks array indices via `size_t` instead of using signed
integers to fix a couple of -Wsign-compare warnings. Adapt callers
accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ref-filter.c')
| -rw-r--r-- | ref-filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c index 23054694c2..bf5534605e 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -3041,7 +3041,7 @@ static void reach_filter(struct ref_array *array, struct commit_list **check_reachable, int include_reached) { - int i, old_nr; + size_t i, old_nr; struct commit **to_clear; if (!*check_reachable) |
