diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-19 08:03:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-19 08:03:46 +0200 |
commit | 49b6de46afac29898d47c1f38f1ad0b57ea041af (patch) | |
tree | 60b9b8e55bb7f79e4cf84a95bc8689b37790e0b7 /build2/scope.cxx | |
parent | ba9137db8e456eb00b921a855e5383b78fa7a8ec (diff) |
Fix typification bug in variable_cache
Diffstat (limited to 'build2/scope.cxx')
-rw-r--r-- | build2/scope.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/scope.cxx b/build2/scope.cxx index 4449747..59b2ee2 100644 --- a/build2/scope.cxx +++ b/build2/scope.cxx @@ -50,7 +50,8 @@ namespace build2 s->target_vars.cache.insert ( make_tuple (&v, tt, *tn), stem, - static_cast<const variable_map::value_data&> (v).version)); + static_cast<const variable_map::value_data&> (v).version, + var)); value& cv (entry.first); @@ -404,7 +405,8 @@ namespace build2 inner_proj->override_cache.insert ( make_pair (&var, inner_vars), stem, - 0)); // Overrides are immutable. + 0, // Overrides are immutable. + var)); value& cv (entry.first); bool cl (entry.second.owns_lock ()); |