Skip to content

Commit f2d1c83

Browse files
committed
Merge branch 'ds/reachable'
Trivial bugfix. * ds/reachable: commit-reach: fix cast in compare_commits_by_gen()
2 parents 4c7f544 + 8628ace commit f2d1c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commit-reach.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ int commit_contains(struct ref_filter *filter, struct commit *commit,
529529

530530
static int compare_commits_by_gen(const void *_a, const void *_b)
531531
{
532-
const struct commit *a = (const struct commit *)_a;
533-
const struct commit *b = (const struct commit *)_b;
532+
const struct commit *a = *(const struct commit * const *)_a;
533+
const struct commit *b = *(const struct commit * const *)_b;
534534

535535
if (a->generation < b->generation)
536536
return -1;

0 commit comments

Comments
 (0)