From a2351b0b85cc6735b706d5a4fdf12304872ff548 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Mar 2017 09:01:42 +0200 Subject: Minor change --- build2/parser.cxx | 5 ++--- 1 file 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. -- cgit v1.1