Merge branch 'rs/gc-sort-func-cast-fix'

Fix broken sorting of maintenance tasks.

* rs/gc-sort-func-cast-fix:
  gc: fix cast in compare_tasks_by_selection()
maint
Junio C Hamano 2020-11-25 15:24:53 -08:00
commit 2ba70a330b
1 changed files with 2 additions and 4 deletions

View File

@ -1253,10 +1253,8 @@ static struct maintenance_task tasks[] = {

static int compare_tasks_by_selection(const void *a_, const void *b_)
{
const struct maintenance_task *a, *b;

a = (const struct maintenance_task *)&a_;
b = (const struct maintenance_task *)&b_;
const struct maintenance_task *a = a_;
const struct maintenance_task *b = b_;

return b->selected_order - a->selected_order;
}