diff options
Diffstat (limited to 'src/parse/expr.cpp')
-rw-r--r-- | src/parse/expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/expr.cpp b/src/parse/expr.cpp index d4edb208..6227dca4 100644 --- a/src/parse/expr.cpp +++ b/src/parse/expr.cpp @@ -950,7 +950,7 @@ ExprNodeP Parse_ExprVal_StructLiteral(TokenStream& lex, AST::Path path) ::std::map<unsigned int, ExprNodeP> nodes; while( GET_TOK(tok, lex) == TOK_INTEGER ) { - unsigned int ofs = tok.intval(); + unsigned int ofs = static_cast<unsigned int>(tok.intval()); GET_CHECK_TOK(tok, lex, TOK_COLON); ExprNodeP val = Parse_Stmt(lex); if( ! nodes.insert( ::std::make_pair(ofs, mv$(val)) ).second ) { |