summaryrefslogtreecommitdiff
path: root/src/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cc')
-rw-r--r--src/parser.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.cc b/src/parser.cc
index fa0db199..396d3a64 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -454,7 +454,9 @@ expr_t::parser_t::parse(std::istream& in, const parse_flags_t& flags,
DEBUG("parser.error", " token kind = " << int(lookahead.kind));
DEBUG("parser.error", " token length = " << lookahead.length);
- add_error_context(line_context(*original_string, pos, end_pos));
+ add_error_context(line_context(*original_string,
+ static_cast<std::size_t>(pos),
+ static_cast<std::size_t>(end_pos)));
}
throw;
}