scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 2dc31478cad643638ab38b1c6f86e25eb7a7a147
parent f69efa2e488332600589e994a7380194b4921f66
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  1 Oct 2014 13:20:49 +0200

Merge remote-tracking branch 'hal/master'

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

diff --git a/cc2/parser.c b/cc2/parser.c @@ -458,8 +458,8 @@ static void localdcl(char *token) { Symbol *sym = declaration(LOCAL, token[0], token); - sym->u.v.off = -curfun->u.f.locals; curfun->u.f.locals += sym->u.v.type->size; + sym->u.v.off = 1-curfun->u.f.locals; } Symbol *