scc

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

commit 2cede128ae54993e1c32c10ac45f91b71428cd4b
parent 7be77a80b5c66e2627f4ceab4b0b62e6755e302b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  9 Oct 2014 17:13:28 +0200

Fix definition of register variables

The logic of the variable isfun was inverted.

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

diff --git a/cc1/decl.c b/cc1/decl.c @@ -443,7 +443,7 @@ decl(void) do { sym = declarator(tp, ID_EXPECTED); sym->s.isdefined = 1; - isfun = sym->type->op != FTN; + isfun = sym->type->op == FTN; switch (sclass) { case TYPEDEF: