aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-13 09:01:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-13 09:01:42 +0200
commita2351b0b85cc6735b706d5a4fdf12304872ff548 (patch)
tree98d38ff9d1c0f5f11322e011935772537f310be1
parent8828de9a28c34128345883d57d144786885485b4 (diff)
Minor change
-rw-r--r--build2/parser.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 9dcd4f5..2f31b7a 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -2678,11 +2678,10 @@ namespace build2
// Now cross the last 'count' names in 'ns' with 'x'. First we will
// allocate n - 1 additional sets of last 'count' names in 'ns'.
//
- size_t b (ns.size () - count); // Start of 'count' names.
ns.reserve (ns.size () + count * (n - 1));
for (size_t i (0); i != n - 1; ++i)
for (size_t j (0); j != count; ++j)
- ns.push_back (ns[b + j]);
+ ns.push_back (ns[start + j]);
// Now cross each name, this time including the first set.
//
@@ -2690,7 +2689,7 @@ namespace build2
{
for (size_t j (0); j != count; ++j)
{
- name& l (ns[b + i * count + j]);
+ name& l (ns[start + i * count + j]);
const name& r (x[i]);
// Move the project names.