ref: 000791441005200aa35dc2b0b43f65dfdb6eafc5
parent: 1539e81eb48b17a7d6da78a39480fedc6661bed0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jan 8 08:06:45 EST 2016
Add support for enum in promote()
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -62,6 +62,7 @@
tp = np->type;
switch (tp->op) {
+ case ENUM:
case INT:
if (tp->n.rank >= inttype->n.rank)
return np;