aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-25 13:41:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-25 13:41:19 +0200
commit95239b7c5404965d4f5ef997b5b75bf542a25192 (patch)
tree1b4fc6229723babffa7c5d56ee0c2eae24215535 /build/algorithm.cxx
parentf56b5a42b9aaaeb0c4e7dee894dea9686599b88c (diff)
Part one of dependency injection with auto-generation support
Diffstat (limited to 'build/algorithm.cxx')
-rw-r--r--build/algorithm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/algorithm.cxx b/build/algorithm.cxx
index c438fb8..f4da3bd 100644
--- a/build/algorithm.cxx
+++ b/build/algorithm.cxx
@@ -213,9 +213,9 @@ namespace build
search_and_match (action a, target& t)
{
group_prerequisites gp (t);
- t.prerequisite_targets.resize (gp.size ());
+ size_t i (t.prerequisite_targets.size ());
+ t.prerequisite_targets.resize (gp.size () + i);
- size_t i (0);
for (prerequisite& p: gp)
{
target& pt (search (p));