aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-01-16 16:35:14 -0800
committerJunio C Hamano <gitster@pobox.com>2025-01-16 16:35:14 -0800
commit564b907c8a39ac6e6f8aecc6b2a1c125d41ada66 (patch)
treea491394905500adf1c0b34fae881a8fb08033628 /commit.h
parentMerge branch 'ps/object-collision-check' (diff)
parentsign-compare: avoid comparing ptrdiff with an int/unsigned (diff)
downloadgit-564b907c8a39ac6e6f8aecc6b2a1c125d41ada66.tar.gz
git-564b907c8a39ac6e6f8aecc6b2a1c125d41ada66.zip
Merge branch 'ps/more-sign-compare'
More -Wsign-compare fixes. * ps/more-sign-compare: sign-compare: avoid comparing ptrdiff with an int/unsigned commit-reach: use `size_t` to track indices when computing merge bases shallow: fix -Wsign-compare warnings builtin/log: fix remaining -Wsign-compare warnings builtin/log: use `size_t` to track indices commit-reach: use `size_t` to track indices in `get_reachable_subset()` commit-reach: use `size_t` to track indices in `remove_redundant()` commit-reach: fix type of `min_commit_date` commit-reach: fix index used to loop through unsigned integer prio-queue: fix type of `insertion_ctr`
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 943e3d74b2..70c870dae4 100644
--- a/commit.h
+++ b/commit.h
@@ -210,7 +210,7 @@ struct commit *pop_most_recent_commit(struct commit_list **list,
struct commit *pop_commit(struct commit_list **stack);
void clear_commit_marks(struct commit *commit, unsigned int mark);
-void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark);
+void clear_commit_marks_many(size_t nr, struct commit **commit, unsigned int mark);
enum rev_sort_order {