From 3ce44330cca9dbc4314feebb27403ebc3175b6c2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2016 09:14:31 +0200 Subject: New variable architecture --- build2/test/rule.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/test') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index efe265b..0b3f59f 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -70,7 +70,7 @@ namespace build2 l = t.base_scope ()[ var_pool.find (string("test.") + t.type ().name)]; - r = l && as (*l); + r = l && cast (*l); } // If this is the update pre-operation, then all we really need to @@ -181,12 +181,12 @@ namespace build2 fail << "both test.roundtrip and test.input/output specified " << "for target " << t; - in = on = &as (*rl); + in = on = &cast (*rl); } else { - in = il ? &as (*il) : nullptr; - on = ol ? &as (*ol) : nullptr; + in = il ? &cast (*il) : nullptr; + on = ol ? &cast (*ol) : nullptr; } // Resolve them to targets, which normally would be existing files @@ -296,7 +296,7 @@ namespace build2 } if (l) - append_options (args, as (*l)); + append_options (args, cast (*l)); } // The format of args shall be: -- cgit v1.1