LibC: Don't compare equal elements in qsort
This seemed to break supertuxkart which returned `less` in this case
This commit is contained in:
@@ -809,7 +809,7 @@ static qsort_pair qsort_partition(uint8_t* pbegin, uint8_t* pend, size_t width,
|
||||
|
||||
while (eq < gt)
|
||||
{
|
||||
const int comp = compar(eq, pivot);
|
||||
const int comp = (eq == pivot) ? 0 : compar(eq, pivot);
|
||||
|
||||
if (comp < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user