Fix a compiler warning
This commit is contained in:
parent
c2f52c1d52
commit
3c51df125d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
void expr_t::token_t::expected(const kind_t wanted)
|
||||||
{
|
{
|
||||||
try {
|
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);
|
throw_(parse_error, _f("Invalid token '%1%'") % *this);
|
||||||
else
|
else
|
||||||
throw_(parse_error,
|
throw_(parse_error,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue