From 3c51df125d878eb9b7acf0384eca2fb8e733ade4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 28 Mar 2014 13:51:00 -0500 Subject: Fix a compiler warning --- src/token.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/token.cc') diff --git a/src/token.cc b/src/token.cc index 6ca649bb..aa78cd5a 100644 --- a/src/token.cc +++ b/src/token.cc @@ -522,7 +522,8 @@ void expr_t::token_t::expected(const char wanted, char c) void expr_t::token_t::expected(const kind_t wanted) { try { - if (wanted == '\0' || wanted == -1) + if (wanted == expr_t::token_t::ERROR || + wanted == expr_t::token_t::UNKNOWN) throw_(parse_error, _f("Invalid token '%1%'") % *this); else throw_(parse_error, -- cgit v1.2.3