diff options
Diffstat (limited to 'build2/scope.cxx')
-rw-r--r-- | build2/scope.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/scope.cxx b/build2/scope.cxx index 0b76647..aaa0077 100644 --- a/build2/scope.cxx +++ b/build2/scope.cxx @@ -507,7 +507,7 @@ namespace build2 lookup l (find_original (var).first); if (l.defined () && l.belongs (*this)) // Existing var in this scope. - return const_cast<value&> (*l); // Ok since this is original. + return vars.modify (l); // Ok since this is original. value& r (assign (var)); // NULL. |