Merge pull request #1407 from dvdhrm/prioq

prioq: drop stability guarantee
This commit is contained in:
Lennart Poettering
2015-09-29 21:16:14 +02:00
2 changed files with 1 additions and 31 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ static unsigned shuffle_up(Prioq *q, unsigned idx) {
k = (idx-1)/2;
if (q->compare_func(q->items[k].data, q->items[idx].data) < 0)
if (q->compare_func(q->items[k].data, q->items[idx].data) <= 0)
break;
swap(q, idx, k);