From 968a6f3c0ac4690a6fc74e8d84058bce91019c2e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 15 Jun 2010 10:12:04 +0100 Subject: Changes for building with Visual Studio 2008 --- src/token.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/token.cc') diff --git a/src/token.cc b/src/token.cc index 9dfff065..67cff65e 100644 --- a/src/token.cc +++ b/src/token.cc @@ -437,7 +437,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags, length = static_cast(in.tellg() - pos); } } - catch (const std::exception& err) { + catch (const std::exception&) { kind = ERROR; length = static_cast(in.tellg() - pos); throw; @@ -449,7 +449,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags, void expr_t::token_t::rewind(std::istream& in) { - in.seekg(- length, std::ios::cur); + in.seekg(- int(length), std::ios::cur); if (in.fail()) throw_(parse_error, _("Failed to rewind input stream")); } -- cgit v1.2.3