Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 11 years ago
parent
commit
d075d5ee95
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ev.c

+ 1
- 1
ev.c View File

@ -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);


Loading…
Cancel
Save