diff options
author | Shea Levy <shea@shealevy.com> | 2014-03-09T18·41-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-10T09·14+0100 |
commit | 049a379ec6ca755bcc077fd0e8da186ff76b8679 (patch) | |
tree | 66552a4997d66ce61d87f822d96b8786fe0c62e4 /src/libexpr/parser.y | |
parent | 908e9ce259710037ae9824a3246143e46e27e867 (diff) |
The expr of AttrNames/DynamicAttrDefs is always an ExprConcatStrings
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r-- | src/libexpr/parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index dc995db00d59..ab0b862246a0 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -488,7 +488,7 @@ attrpath $$->push_back(AttrName(str->s)); delete str; } else - $$->push_back(AttrName($3)); + $$->push_back(AttrName(static_cast<ExprConcatStrings *>($3))); } | attr { $$ = new vector<AttrName>; $$->push_back(AttrName(data->symbols.create($1))); } | string_attr @@ -498,7 +498,7 @@ attrpath $$->push_back(AttrName(str->s)); delete str; } else - $$->push_back(AttrName($1)); + $$->push_back(AttrName(static_cast<ExprConcatStrings *>($1))); } ; |