Added a pair of missing calls to in.peek().
This commit is contained in:
parent
52524ff2fb
commit
cf861b35c0
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue