summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basic/prioq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/prioq.c b/src/basic/prioq.c
index b89888be0e..5e567b181d 100644
--- a/src/basic/prioq.c
+++ b/src/basic/prioq.c
@@ -101,7 +101,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);