Closed alanz closed 10 years ago
On linux the last two parameters of qsort_r seem to be swapped.
I need to replace
qsort_r(p->js,keys,sizeof(unsigned short)*4,p->json,pkeycmp);
with
qsort_r(p->js,keys,sizeof(unsigned short)*4,pkeycmp,p->json);
otherwise it segfaults.
What is the best way of resolving this?
On linux the last two parameters of qsort_r seem to be swapped.
I need to replace
with
otherwise it segfaults.
What is the best way of resolving this?