[hackers] [scc] Fill sign and rank fileds for enum types || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 8 Jan 2016 13:14:02 +0100 (CET)

commit 0e1ef503f2d2a13bdd07e6d5230d1a67f2a92b47
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 8 13:08:13 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 8 13:08:13 2016 +0100

    Fill sign and rank fileds for enum types
    
    This information was lost but it is totally necessary

diff --git a/cc1/types.c b/cc1/types.c
index 2aeeded..2a36746 100644
--- a/cc1/types.c
+++ b/cc1/types.c
_AT_@ -474,6 +474,8 @@ mktype(Type *tp, int op, TINT nelem, Type *pars[])
                 type.printed = 1;
                 type.integer = 1;
                 type.arith = 1;
+ type.sign = 0;
+ type.n.rank = RANK_INT;
                 goto no_defined;
         case STRUCT:
         case UNION:
Received on Fri Jan 08 2016 - 13:14:02 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 08 2016 - 13:25:31 CET