summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-23 01:08:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-23 01:08:52 -0400
commitcf861b35c09aad09bc18340e6c8affb7349f4efc (patch)
tree998b821e605b97cd598e82049ae98ec06b2fd159 /src/token.cc
parent52524ff2fb9b248f34d229999fbd55fef9654c8d (diff)
downloadfork-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.cc2
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;