aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index 2ce34e3..174c395 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -263,7 +263,7 @@ namespace build2
}
const_ptr<target>* mp (&t.member);
- for (auto p (*mp); p != nullptr && !p->is_a (tt); mp = &p->member) ;
+ for (; *mp != nullptr && !(*mp)->is_a (tt); mp = &(*mp)->member) ;
const target& m (*mp != nullptr // Might already be there.
? **mp