scc

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

commit 743db5c26f0173ca447f0de8533c14abdd79f0da
parent e6e455cf62362367eed000de2771ca275953ec93
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 14 Aug 2015 07:37:31 +0200

Fix comment in compound()

We have a symbolic constant now for global context, use it.

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

diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -333,10 +333,10 @@ compound(Symbol *lbreak, Symbol *lcont, Caselist *lswitch) popctx(); /* - * curctx == 1 means we are at the end of a function + * curctx == GLOBALCTX+1 means we are at the end of a function * so we have to pop the context related to the parameters */ - if (curctx == 1) + if (curctx == GLOBALCTX+1) popctx(); expect('}'); }