scc

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

commit e0d74dfe69664319a05b959acd314490b151ef86
parent 3be0e6982d34c95a11842fc4b57895aab932a507
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  6 Mar 2017 13:42:09 +0100

[cc1] Fix null()

The condition was broken and it wasn't working properly.

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

diff --git a/cc1/expr.c b/cc1/expr.c @@ -120,7 +120,7 @@ set_p1_p2: static int null(Node *np) { - if (!np->flags & NCONST || np->type != pvoidtype) + if (!(np->flags&NCONST) || np->type != pvoidtype) return 0; return cmpnode(np, 0); }