[hackers] [scc] Style patch || Roberto E. Vargas Caballero
commit 75f20c4db1212d43aadc16c32fc9b507b47f9524
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Jul 23 21:05:40 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Jul 23 21:05:40 2015 +0200
Style patch
diff --git a/cc1/expr.c b/cc1/expr.c
index 709b53b..b4c9401 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -125,13 +125,18 @@ convert(Node *np, Type *tp, char iscast)
if (eqtype(np->type, tp))
return np;
switch (BTYPE(np)) {
- case ENUM: case INT: case FLOAT:
+ case ENUM:
+ case INT:
+ case FLOAT:
switch (tp->op) {
case PTR:
if (!iscast || BTYPE(np) == FLOAT)
return NULL;
/* PASSTHROUGH */
- case INT: case FLOAT: case ENUM: case VOID:
+ case INT:
+ case FLOAT:
+ case ENUM:
+ case VOID:
break;
default:
return NULL;
_AT_@ -139,7 +144,9 @@ convert(Node *np, Type *tp, char iscast)
break;
case PTR:
switch (tp->op) {
- case ENUM: case INT: case VOID: /* TODO: allow p = 0 */
+ case ENUM: /* TODO: allow p = 0 */
+ case INT:
+ case VOID:
if (!iscast)
return NULL;;
break;
Received on Thu Jul 23 2015 - 21:06:55 CEST
This archive was generated by hypermail 2.3.0
: Thu Jul 23 2015 - 21:12:12 CEST