From 5e164ac2a5dc580656e9aa6d878bf9f9c10b0c76 Mon Sep 17 00:00:00 2001 From: mccallum Date: Thu, 31 Oct 1996 18:02:23 +0000 Subject: [PATCH] Changes from Richard Frith-Macdonald. See Oct 31 ChangeLog entry. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1894 72102866-910b-0410-8b05-ffd578937521 --- Source/Heap.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Heap.m b/Source/Heap.m index 77365822d..f06c61704 100644 --- a/Source/Heap.m +++ b/Source/Heap.m @@ -41,12 +41,12 @@ right = HEAP_RIGHT(index); left = HEAP_LEFT(index); - if (left <= _count + if (left < _count && [_contents_array[index] compare: _contents_array[left]] > 0) largest = left; else largest = index; - if (right <= _count + if (right < _count && [_contents_array[largest] compare: _contents_array[right]] > 0) largest = right; if (largest != index)