mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
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:
parent
546db98210
commit
aa3bfab08e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue