shithub: scc

Download patch

ref: 3fe369d20c2ac3e00272ce3e9fded43f3d9a5afc
parent: b3a6d0e78452e23b9d2044454aec454d39631263
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jan 8 07:18:11 EST 2016

Initialize type flags

When a new type is created all the flags of the new type
must be initialized, in other case we can have wrong tests.

--- a/cc1/types.c
+++ b/cc1/types.c
@@ -446,7 +446,10 @@
 
 	type.type = tp;
 	type.op = op;
+	type.arith = 0;
+	type.integer = 0;
 	type.printed = 0;
+	type.aggreg = 0;
 	type.letter = c;
 	type.p.pars = pars;
 	type.n.elem = nelem;