From cf861b35c09aad09bc18340e6c8affb7349f4efc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 23 Jan 2009 01:08:52 -0400 Subject: Added a pair of missing calls to in.peek(). --- src/token.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/token.cc') 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; -- cgit v1.2.3