Added a pair of missing calls to in.peek().

This commit is contained in:
John Wiegley 2009-01-23 01:08:52 -04:00
parent 52524ff2fb
commit cf861b35c0

View file

@ -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;