scc

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

commit ac904dae0efce5a0fd81709566dd25d22d79291f
parent ad37e51e277f84bb1985379d54f2974b3d35bc3a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  5 Jul 2013 12:28:22 +0200

Fix bug in listdcl

The parameter of declarator must be the base of the current definition,
and not the non initialized pointer to the destiny type.

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

diff --git a/decl.c b/decl.c @@ -193,7 +193,7 @@ listdcl(struct ctype *base) struct node *sp, *np; register struct ctype *tp; - declarator(tp); + declarator(base); tp = decl_type(base); (cursym->ctype = tp)->refcnt++; sp = nodesym(cursym);