aboutsummaryrefslogtreecommitdiff
path: root/build2/bin
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-28 09:45:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-28 16:03:35 +0200
commit69801c4e23f877359118e55ed291737f4fbece04 (patch)
treecd4cb504a5c28aafde601e2d5d4603a44c75b548 /build2/bin
parent3ce44330cca9dbc4314feebb27403ebc3175b6c2 (diff)
Add variable cast from lookup
Diffstat (limited to 'build2/bin')
-rw-r--r--build2/bin/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/bin/rule.cxx b/build2/bin/rule.cxx
index d74dd65..b5d5ca6 100644
--- a/build2/bin/rule.cxx
+++ b/build2/bin/rule.cxx
@@ -46,7 +46,7 @@ namespace build2
// Get the library type to build. If not set for a target, this
// should be configured at the project scope by init_lib().
//
- const string& type (cast<string> (*t["bin.lib"]));
+ const string& type (cast<string> (t["bin.lib"]));
bool ar (type == "static" || type == "both");
bool so (type == "shared" || type == "both");
@@ -121,7 +121,7 @@ namespace build2
// prerequisite vs prerequisite_target.
//
//
- const string& type (cast<string> (*t["bin.lib"]));
+ const string& type (cast<string> (t["bin.lib"]));
bool ar (type == "static" || type == "both");
bool so (type == "shared" || type == "both");