summaryrefslogtreecommitdiff
path: root/src/expand/format_args.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand/format_args.cpp')
-rw-r--r--src/expand/format_args.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/format_args.cpp b/src/expand/format_args.cpp
index ab320e3f..1b8dfb54 100644
--- a/src/expand/format_args.cpp
+++ b/src/expand/format_args.cpp
@@ -19,8 +19,8 @@ class CFormatArgsExpander:
if( ident != "" )
ERROR(sp, E0000, "format_args! doesn't take an ident");
- GET_CHECK_TOK(tok, lex, TOK_STRING);
- auto format_string = mv$(tok.str());
+ auto n = Parse_ExprVal(lex);
+ auto format_string = dynamic_cast<AST::ExprNode_String&>(*n).m_value;
// TODO: Interpolated expression "tokens"
::std::map< ::std::string, TokenTree> named_args;