summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2009-07-26 04:24:17 +0000
committerroot <root>2009-07-26 04:24:17 +0000
commit9535f9b00601557a96ccca2a462af56578f616cc (patch)
tree212a5b87b35327a8136c876529c68a45bcb5a456 /ev.c
parent8eaa2572ce393e19197901932dd4af128e4116b0 (diff)
*** empty log message ***
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 38b3938..6ce1dbb 100644
--- a/ev.c
+++ b/ev.c
@@ -1059,7 +1059,7 @@ downheap (ANHE *heap, int N, int k)
{
int c = k << 1;
- if (c > N + HEAP0 - 1)
+ if (c >= N + HEAP0)
break;
c += c + 1 < N + HEAP0 && ANHE_at (heap [c]) > ANHE_at (heap [c + 1])