mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
fc364b3f5b
commit
5e164ac2a5
1 changed files with 2 additions and 2 deletions
|
@ -41,12 +41,12 @@
|
||||||
|
|
||||||
right = HEAP_RIGHT(index);
|
right = HEAP_RIGHT(index);
|
||||||
left = HEAP_LEFT(index);
|
left = HEAP_LEFT(index);
|
||||||
if (left <= _count
|
if (left < _count
|
||||||
&& [_contents_array[index] compare: _contents_array[left]] > 0)
|
&& [_contents_array[index] compare: _contents_array[left]] > 0)
|
||||||
largest = left;
|
largest = left;
|
||||||
else
|
else
|
||||||
largest = index;
|
largest = index;
|
||||||
if (right <= _count
|
if (right < _count
|
||||||
&& [_contents_array[largest] compare: _contents_array[right]] > 0)
|
&& [_contents_array[largest] compare: _contents_array[right]] > 0)
|
||||||
largest = right;
|
largest = right;
|
||||||
if (largest != index)
|
if (largest != index)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue