[hackers] [scc] Add support for enum in promote() || Roberto E. Vargas Caballero
commit 000791441005200aa35dc2b0b43f65dfdb6eafc5
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 8 13:06:45 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Jan 8 13:06:45 2016 +0100
Add support for enum in promote()
diff --git a/cc1/expr.c b/cc1/expr.c
index 8e2df3c..dcd99e0 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -62,6 +62,7 @@ promote(Node *np)
tp = np->type;
switch (tp->op) {
+ case ENUM:
case INT:
if (tp->n.rank >= inttype->n.rank)
return np;
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:26 CET