Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ds/reachable'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 30 Oct 2018 06:43:47 +0000
(15:43 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 30 Oct 2018 06:43:47 +0000
(15:43 +0900)
Trivial bugfix.
* ds/reachable:
commit-reach: fix cast in compare_commits_by_gen()
commit-reach.c
patch
|
blob
|
history
raw
(from parent 1:
4c7f544
)
diff --git
a/commit-reach.c
b/commit-reach.c
index 79419be8aff7426ec435f040b88f8e91040b71f4..a9da65c4625cbbeb165b0c2d54fe3edabb1a3a34 100644
(file)
--- 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 commi
t *)_a;
- const struct commit *b =
(const struct commi
t *)_b;
+ const struct commit *a =
*(const struct commit * cons
t *)_a;
+ const struct commit *b =
*(const struct commit * cons
t *)_b;
if (a->generation < b->generation)
return -1;