summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 6ce1dbb..05c80bf 100644
--- a/ev.c
+++ b/ev.c
@@ -1105,7 +1105,7 @@ upheap (ANHE *heap, int k)
inline_size void
adjustheap (ANHE *heap, int N, int k)
{
- if (k > HEAP0 && ANHE_at (heap [HPARENT (k)]) >= ANHE_at (heap [k]))
+ if (k > HEAP0 && ANHE_at (heap [k]) <= ANHE_at (heap [HPARENT (k)]))
upheap (heap, k);
else
downheap (heap, N, k);