Fix a compiler warning

This commit is contained in:
John Wiegley 2014-03-28 13:51:00 -05:00
parent c2f52c1d52
commit 3c51df125d

View file

@ -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,