aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm.cxx
diff options
context:
space:
mode:
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));