[hackers] [scc] [cc1] Fix null() || Roberto E. Vargas Caballero
commit e0d74dfe69664319a05b959acd314490b151ef86
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Mar 6 13:42:09 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Mar 6 13:42:09 2017 +0100
[cc1] Fix null()
The condition was broken and it wasn't working properly.
diff --git a/cc1/expr.c b/cc1/expr.c
index b6c405d..230bb68 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -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);
}
Received on Mon Mar 06 2017 - 14:24:40 CET
This archive was generated by hypermail 2.3.0
: Mon Mar 06 2017 - 14:36:44 CET