diff options
author | John Wiegley <johnw@newartisans.com> | 2014-03-28 13:51:00 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-03-28 13:51:00 -0500 |
commit | 3c51df125d878eb9b7acf0384eca2fb8e733ade4 (patch) | |
tree | 3b83ff383b8fa88b96e613ebcc52f8394a84e6eb /src/token.cc | |
parent | c2f52c1d521bdae3cb0d8a6db60646c7b20d0a76 (diff) | |
download | fork-ledger-3c51df125d878eb9b7acf0384eca2fb8e733ade4.tar.gz fork-ledger-3c51df125d878eb9b7acf0384eca2fb8e733ade4.tar.bz2 fork-ledger-3c51df125d878eb9b7acf0384eca2fb8e733ade4.zip |
Fix a compiler warning
Diffstat (limited to 'src/token.cc')
-rw-r--r-- | src/token.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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, |