scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 10a0b46b7b6016099d6aa422e09c2179fe7b2fcc
parent 4603a2a279d2bfd1323488d4cb467d6287fed735
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  9 May 2015 17:56:48 +0200

Remove inifinite loop in ahead()

Diffstat:
Mcc1/lex.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -518,10 +518,10 @@ ahead(void) int c; repeat: - if (!input) + if (!fill()) return EOFTOK; while (isspace(c = *input->begin)) - ; + ++input->begin; if (c == '\0') { fill(); goto repeat;