Improve handling of "do ... while" following "else". This change
eliminates some incorrect "Unmatched 'else'" errors.
This commit is contained in:
parent
99ee419296
commit
34ba737933
@ -310,7 +310,7 @@ reduce()
|
||||
case whilestmt: /* while (...) on top */
|
||||
if (ps.p_stack[ps.tos - 1] == dohead) {
|
||||
/* it is termination of a do while */
|
||||
ps.p_stack[--ps.tos] = stmt;
|
||||
ps.tos -= 2;
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user