Skip to content

Commit eed0013

Browse files
committed
correct order of arguments for Dynamic_array<>::CMP_FUNC2
1 parent 8a37ce0 commit eed0013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ template <class Elem> class Dynamic_array
239239
my_qsort(array.buffer, array.elements, sizeof(Elem), (qsort_cmp)cmp_func);
240240
}
241241

242-
typedef int (*CMP_FUNC2)(const Elem *el1, const Elem *el2, void *);
242+
typedef int (*CMP_FUNC2)(void *, const Elem *el1, const Elem *el2);
243243
void sort(CMP_FUNC2 cmp_func, void *data)
244244
{
245245
my_qsort2(array.buffer, array.elements, sizeof(Elem), (qsort2_cmp)cmp_func, data);

0 commit comments

Comments
 (0)