diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1997-11-06 19:21:38 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-11-06 14:21:38 -0500 |
commit | 0cdff4f223f93c054db4f879d61c8289e56f1cea (patch) | |
tree | 7a05566b585b322f3fabbba703945a954a0f43cd /libstdc++/stl/stl_algo.h | |
parent | 95e8dcbaa0aa8e18cacddf112d443ddf7770bcc7 (diff) | |
download | gcc-0cdff4f223f93c054db4f879d61c8289e56f1cea.zip gcc-0cdff4f223f93c054db4f879d61c8289e56f1cea.tar.gz gcc-0cdff4f223f93c054db4f879d61c8289e56f1cea.tar.bz2 |
stl_algo.h, [...]: Update to October 28 SGI release.
* stl_algo.h, stl_algobase.h, stl_bvector.h,
stl_deque.h: Update to October 28 SGI release.
From-SVN: r16351
Diffstat (limited to 'libstdc++/stl/stl_algo.h')
-rw-r--r-- | libstdc++/stl/stl_algo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++/stl/stl_algo.h b/libstdc++/stl/stl_algo.h index 6703c2a..53b8dbd 100644 --- a/libstdc++/stl/stl_algo.h +++ b/libstdc++/stl/stl_algo.h @@ -2592,7 +2592,7 @@ bool __is_heap(RandomAccessIterator first, RandomAccessIterator last, for (Distance child = 1; child < n; ++child) { if (first[parent] < first[child]) return false; - if (child & 1 == 0) + if ((child & 1) == 0) ++parent; } return true; @@ -2616,7 +2616,7 @@ bool __is_heap(RandomAccessIterator first, RandomAccessIterator last, for (Distance child = 1; child < n; ++child) { if (comp(first[parent], first[child])) return false; - if (child & 1 == 0) + if ((child & 1) == 0) ++parent; } return true; |