From 49b6de46afac29898d47c1f38f1ad0b57ea041af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Apr 2017 08:03:46 +0200 Subject: Fix typification bug in variable_cache --- build2/scope.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/scope.cxx') 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 (v).version)); + static_cast (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 ()); -- cgit v1.1