Permalink
Browse files

correct order of arguments for Dynamic_array<>::CMP_FUNC2

  • Loading branch information...
vuvova committed Dec 5, 2018
1 parent 8a37ce0 commit eed0013bedcf13b2f95acfa793626e758dd0489b
Showing with 1 addition and 1 deletion.
  1. +1 −1 sql/sql_array.h
@@ -239,7 +239,7 @@ template <class Elem> class Dynamic_array
my_qsort(array.buffer, array.elements, sizeof(Elem), (qsort_cmp)cmp_func);
}
typedef int (*CMP_FUNC2)(const Elem *el1, const Elem *el2, void *);
typedef int (*CMP_FUNC2)(void *, const Elem *el1, const Elem *el2);
void sort(CMP_FUNC2 cmp_func, void *data)
{
my_qsort2(array.buffer, array.elements, sizeof(Elem), (qsort2_cmp)cmp_func, data);

0 comments on commit eed0013

Please sign in to comment.