From 0cdff4f223f93c054db4f879d61c8289e56f1cea Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 6 Nov 1997 19:21:38 +0000 Subject: 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 --- libstdc++/stl/stl_algo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libstdc++/stl/stl_algo.h') 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; -- cgit v1.1