scc

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

commit 04331f0a06574d3af45fe75f7264dd4a709cb5fc
parent 7144207c5a7cc559901322704be568daf4df2eaf
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 17 Mar 2015 21:11:21 +0000

Fix parentheses expressions

The expext() call in cast() was before of the expression, so
the valid string for the parser was: () expr.

Diffstat:
Mcc1/expr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -598,8 +598,8 @@ cast(void) } break; default: - expect(')'); np2 = expr(); + expect(')'); break; }