aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-25 13:57:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-25 13:57:55 +0000
commitcd97b615582f231451efa92d22b5664123c1afa2 (patch)
tree3665954a4368c07b9f75a484a3c70997adc170b0
parent2c67a1b0308b2c0bd4685ec32781ba34da4877d6 (diff)
downloadpaludis-cd97b615582f231451efa92d22b5664123c1afa2.tar.gz
paludis-cd97b615582f231451efa92d22b5664123c1afa2.tar.xz
Work around g++-3.4 bugs. Fixes: gentoo#163729
-rw-r--r--paludis/dep_list/dep_list.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/dep_list/dep_list.cc b/paludis/dep_list/dep_list.cc
index 956323c..bee6159 100644
--- a/paludis/dep_list/dep_list.cc
+++ b/paludis/dep_list/dep_list.cc
@@ -1117,7 +1117,7 @@ DepList::add_error_package(const PackageDatabaseEntry & p, const DepListEntryKin
std::pair<MergeListIndex::iterator, MergeListIndex::const_iterator> pp(
_imp->merge_list_index.equal_range(p.name));
- for ( ; pp.first != pp.second ; ++pp.first)
+ for ( ; pp.second != pp.first ; ++pp.first)
{
if (pp.first->second->kind == kind && pp.first->second->package == p)
{
@@ -1156,7 +1156,7 @@ DepList::add_suggested_package(const PackageDatabaseEntry & p)
std::pair<MergeListIndex::iterator, MergeListIndex::const_iterator> pp(
_imp->merge_list_index.equal_range(p.name));
- for ( ; pp.first != pp.second ; ++pp.first)
+ for ( ; pp.second != pp.first ; ++pp.first)
{
if ((pp.first->second->kind == dlk_suggested || pp.first->second->kind == dlk_already_installed
|| pp.first->second->kind == dlk_package || pp.first->second->kind == dlk_provided