diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-01 13:02:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-01 13:02:09 +0200 |
commit | 59954eef4d7a6044115a8d749d36fa16f840ea6a (patch) | |
tree | bc48adbb30d77e7db4f3a9210b59318fc8221cc8 | |
parent | a2cad68fe340a66ad54b93f88e39f97898fc462e (diff) |
Fix bug in ad hoc member traversal
-rw-r--r-- | build2/algorithm.cxx | 2 |
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 |