diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-23 01:08:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-23 01:08:52 -0400 |
commit | cf861b35c09aad09bc18340e6c8affb7349f4efc (patch) | |
tree | 998b821e605b97cd598e82049ae98ec06b2fd159 /src/token.cc | |
parent | 52524ff2fb9b248f34d229999fbd55fef9654c8d (diff) | |
download | fork-ledger-cf861b35c09aad09bc18340e6c8affb7349f4efc.tar.gz fork-ledger-cf861b35c09aad09bc18340e6c8affb7349f4efc.tar.bz2 fork-ledger-cf861b35c09aad09bc18340e6c8affb7349f4efc.zip |
Added a pair of missing calls to in.peek().
Diffstat (limited to 'src/token.cc')
-rw-r--r-- | src/token.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/token.cc b/src/token.cc index 6c28e7d6..964c65de 100644 --- a/src/token.cc +++ b/src/token.cc @@ -133,6 +133,7 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags) switch (c) { case '&': in.get(c); + c = in.peek(); if (c == '&') { in.get(c); kind = KW_AND; @@ -143,6 +144,7 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags) break; case '|': in.get(c); + c = in.peek(); if (c == '|') { in.get(c); kind = KW_OR; |