summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-07-26 04:43:03 +0000
committerroot <root>2009-07-26 04:43:03 +0000
commit02de49a42b76531a53edcb894a048865ee7fb3f0 (patch)
treeeee3a3ce052679757a6b39f139949e68e6495c64
parent9535f9b00601557a96ccca2a462af56578f616cc (diff)
*** empty log message ***
-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);