summaryrefslogtreecommitdiff
path: root/commit-reach.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-30 06:43:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-30 06:43:47 (GMT)
commitf2d1c83df05e30d7588ba3c28b994d6ebbdbc9b0 (patch)
tree5193d8f738c7093574ead17044f185495bfbbbd3 /commit-reach.c
parent4c7f5440225aba8f0c7253575e5ffa933a267de7 (diff)
parent8628ace2691510dc856e2a9c735706fa8f0620e1 (diff)
downloadgit-f2d1c83df05e30d7588ba3c28b994d6ebbdbc9b0.zip
git-f2d1c83df05e30d7588ba3c28b994d6ebbdbc9b0.tar.gz
git-f2d1c83df05e30d7588ba3c28b994d6ebbdbc9b0.tar.bz2
Merge branch 'ds/reachable'
Trivial bugfix. * ds/reachable: commit-reach: fix cast in compare_commits_by_gen()
Diffstat (limited to 'commit-reach.c')
-rw-r--r--commit-reach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commit-reach.c b/commit-reach.c
index 79419be..a9da65c 100644
--- a/commit-reach.c
+++ b/commit-reach.c
@@ -529,8 +529,8 @@ int commit_contains(struct ref_filter *filter, struct commit *commit,
static int compare_commits_by_gen(const void *_a, const void *_b)
{
- const struct commit *a = (const struct commit *)_a;
- const struct commit *b = (const struct commit *)_b;
+ const struct commit *a = *(const struct commit * const *)_a;
+ const struct commit *b = *(const struct commit * const *)_b;
if (a->generation < b->generation)
return -1;