aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.txx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/variable.txx')
-rw-r--r--build2/variable.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/variable.txx b/build2/variable.txx
index f2c55ff..54e48a3 100644
--- a/build2/variable.txx
+++ b/build2/variable.txx
@@ -64,7 +64,7 @@ namespace build2
for (auto& p: m)
{
d->emplace_back (p.first); // Const, can't move.
- d->back ().pair = '=';
+ d->back ().pair = true;
d->emplace_back (move (p.second));
}
@@ -106,7 +106,7 @@ namespace build2
//
for (auto i (v.begin ()); i != v.end (); ++i)
{
- if (i->pair == '\0')
+ if (!i->pair)
fail << value_traits<std::map<K, V>>::value_type.name << " key-value "
<< "pair expected instead of '" << *i << "' "
<< "in variable '" << var.name << "'";