indent(1): minor off-by-one error.
This was introduced in r303571. Obtianed from: Piotr Stefaniak
This commit is contained in:
parent
add8fe4b90
commit
1e69348217
@ -202,7 +202,7 @@ parse(int tk) /* tk: the code for the construct scanned */
|
||||
|
||||
} /* end of switch */
|
||||
|
||||
if (ps.tos >= STACKSIZE)
|
||||
if (ps.tos >= STACKSIZE - 1)
|
||||
errx(1, "Parser stack overflow");
|
||||
|
||||
reduce(); /* see if any reduction can be done */
|
||||
|
Loading…
Reference in New Issue
Block a user