From a6b3719d8991729bea314cf4202ed3f166900461 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Tue, 11 Sep 2012 21:59:08 +0530 Subject: [PATCH] Fix conditional in heapq function. --- utils/heapq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/heapq.c b/utils/heapq.c index a7637be..ec9eb24 100644 --- a/utils/heapq.c +++ b/utils/heapq.c @@ -131,7 +131,7 @@ _siftupmax_s(heap_t *h, __TYPE spos) /* Set childpos to index of smaller child. */ rightpos = childpos + 1; if (rightpos < endpos) { - if (! (heap[rightpos] < heap[childpos])) + if (heap[rightpos] < heap[childpos]) childpos = rightpos; } /* Move the smaller child up. */