commit 000791441005200aa35dc2b0b43f65dfdb6eafc5 parent 1539e81eb48b17a7d6da78a39480fedc6661bed0 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Fri, 8 Jan 2016 13:06:45 +0100 Add support for enum in promote() Diffstat:
M | cc1/expr.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cc1/expr.c b/cc1/expr.c @@ -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;