summaryrefslogtreecommitdiff
path: root/src/parse/pattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/pattern.cpp')
-rw-r--r--src/parse/pattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/pattern.cpp b/src/parse/pattern.cpp
index 699e7fae..72b3eac4 100644
--- a/src/parse/pattern.cpp
+++ b/src/parse/pattern.cpp
@@ -409,7 +409,7 @@ AST::Pattern Parse_PatternStruct(TokenStream& lex, AST::Path path, bool is_refut
::std::map<unsigned int, AST::Pattern> pats;
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);
auto val = Parse_Pattern(lex, is_refutable);
if( ! pats.insert( ::std::make_pair(ofs, mv$(val)) ).second ) {