aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/script.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/script.cxx')
-rw-r--r--build2/test/script/script.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx
index bc816d7..0586377 100644
--- a/build2/test/script/script.cxx
+++ b/build2/test/script/script.cxx
@@ -659,7 +659,7 @@ namespace build2
lookup l (find (var));
if (l.defined () && l.belongs (*this)) // Existing var in this scope.
- return const_cast<value&> (*l);
+ return vars.modify (l);
value& r (assign (var)); // NULL.