Skip to content

Commit

Permalink
Simplify traverse_sort
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Sep 27, 2023
1 parent 34d5b6e commit f1a0790
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions libvips/iofuncs/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1712,12 +1712,10 @@ traverse_find_required_priority(void *data, void *a, void *b)
return NULL;
}

static gint
traverse_sort(gconstpointer a, gconstpointer b, void *user_data)
static int
traverse_sort(VipsArgumentClass *class1, VipsArgumentClass *class2,
void *user_data)
{
VipsArgumentClass *class1 = (VipsArgumentClass *) a;
VipsArgumentClass *class2 = (VipsArgumentClass *) b;

return class1->priority - class2->priority;
}

Expand Down

0 comments on commit f1a0790

Please sign in to comment.