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) {
|
switch (c) {
|
||||||
case '&':
|
case '&':
|
||||||
in.get(c);
|
in.get(c);
|
||||||
|
c = in.peek();
|
||||||
if (c == '&') {
|
if (c == '&') {
|
||||||
in.get(c);
|
in.get(c);
|
||||||
kind = KW_AND;
|
kind = KW_AND;
|
||||||
|
|
@ -143,6 +144,7 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
|
||||||
break;
|
break;
|
||||||
case '|':
|
case '|':
|
||||||
in.get(c);
|
in.get(c);
|
||||||
|
c = in.peek();
|
||||||
if (c == '|') {
|
if (c == '|') {
|
||||||
in.get(c);
|
in.get(c);
|
||||||
kind = KW_OR;
|
kind = KW_OR;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue