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
This commit is contained in:
Andrew McCallum 1996-10-31 18:02:23 +00:00
parent 546db98210
commit aa3bfab08e

View file

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