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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand/format_args.cpp b/src/expand/format_args.cpp
index 92afcbb2..e4c02b8b 100644
--- a/src/expand/format_args.cpp
+++ b/src/expand/format_args.cpp
@@ -477,7 +477,7 @@ class CFormatArgsExpander:
auto expr_tt = TokenTree(Token( InterpolatedFragment(InterpolatedFragment::EXPR, Parse_Expr0(lex).release()) ));
- auto ins_rv = named_args_index.insert( ::std::make_pair(mv$(name), named_args.size()) );
+ auto ins_rv = named_args_index.insert( ::std::make_pair(mv$(name), static_cast<unsigned>(named_args.size())) );
if( ins_rv.second == false ) {
ERROR(sp, E0000, "Duplicate definition of named argument `" << ins_rv.first->first << "`");
}