mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
correct order of arguments for Dynamic_array<>::CMP_FUNC2
This commit is contained in:
@ -239,7 +239,7 @@ public:
|
|||||||
my_qsort(array.buffer, array.elements, sizeof(Elem), (qsort_cmp)cmp_func);
|
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)
|
void sort(CMP_FUNC2 cmp_func, void *data)
|
||||||
{
|
{
|
||||||
my_qsort2(array.buffer, array.elements, sizeof(Elem), (qsort2_cmp)cmp_func, data);
|
my_qsort2(array.buffer, array.elements, sizeof(Elem), (qsort2_cmp)cmp_func, data);
|
||||||
|
Reference in New Issue
Block a user