[hackers] [scc] Add ENUM in the cases that were lost in fold.c || Roberto E. Vargas Caballero

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

commit 78fb2955d0a19020b98dcaf65306217a47d720ea
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 8 12:26:22 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 8 12:26:22 2016 +0100

    Add ENUM in the cases that were lost in fold.c
    
    ENUM was a late addition, and it had to be included
    in a lot of different places, but it was lost in
    some of them.

diff --git a/cc1/fold.c b/cc1/fold.c
index a168f2d..7bddbdf 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -6,8 +6,6 @@
 #include "cc1.h"
 
 
-/* TODO: Add ENUM in the cases */
-
 TUINT
 ones(int nbytes)
 {
_AT_@ -325,6 +323,7 @@ fold(int op, Type *tp, Node *lp, Node *rp)
         rs = (rp) ? rp->sym : NULL;
 
         switch (type = optype->op) {
+ case ENUM:
         case INT:
                 if (!optype->sign)
                         type = UNSIGNED;
Received on Fri Jan 08 2016 - 13:14:01 CET

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