[hackers] [scc] Initialize type flags || Roberto E. Vargas Caballero
commit 3fe369d20c2ac3e00272ce3e9fded43f3d9a5afc
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 8 12:18:11 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 8 12:18:11 2016 +0100
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.
diff --git a/cc1/types.c b/cc1/types.c
index dfb0b1b..65be354 100644
--- a/cc1/types.c
+++ b/cc1/types.c
_AT_@ -446,7 +446,10 @@ mktype(Type *tp, int op, TINT nelem, Type *pars[])
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;
Received on Fri Jan 08 2016 - 13:14:00 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 08 2016 - 13:25:05 CET