mirror of
https://github.com/git/git.git
synced 2024-06-08 11:16:12 +02:00
Merge branch 'ds/reachable'
Trivial bugfix. * ds/reachable: commit-reach: fix cast in compare_commits_by_gen()
This commit is contained in:
commit
f2d1c83df0
|
@ -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)
|
static int compare_commits_by_gen(const void *_a, const void *_b)
|
||||||
{
|
{
|
||||||
const struct commit *a = (const struct commit *)_a;
|
const struct commit *a = *(const struct commit * const *)_a;
|
||||||
const struct commit *b = (const struct commit *)_b;
|
const struct commit *b = *(const struct commit * const *)_b;
|
||||||
|
|
||||||
if (a->generation < b->generation)
|
if (a->generation < b->generation)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue