From 38122c22241cb8fe64f0d17cd3b084418f49edaa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 28 Feb 2009 04:54:54 -0400 Subject: Corrected warnings g++-4.3.3 was complaining about --- src/parser.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/parser.cc') 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(pos), + static_cast(end_pos))); } throw; } -- cgit v1.2.3