shithub: scc

Download patch

ref: 4a958ed64d14b99abed9c49125079ca21d3a8d38
parent: 82383606b685c930d22ad3c3458195ff7d180454
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 6 08:42:09 EST 2017

[cc1] Fix null()

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

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -120,7 +120,7 @@
 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);
 }