[hackers] [scc] Revert "[cc1] Fix inc/dec operators" || Roberto E. Vargas Caballero
commit dbbd2b91eb4a5ffe7a97920ec863ddaea91114d0
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Feb 3 09:44:43 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Feb 3 09:44:43 2017 +0100
Revert "[cc1] Fix inc/dec operators"
This reverts commit e2576771fbb06b5768b0f2fcb06941f872ec3f38.
diff --git a/cc1/expr.c b/cc1/expr.c
index 84b1cac..6ab6932 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -608,13 +608,13 @@ incdec(Node *np, int op)
errorp("%s of pointer to an incomplete type",
(op == OINC || op == OA_ADD) ? "increment" : "decrement");
return np;
- } else if (tp->op == PTR || tp->prop&TARITH) {
+ } else if (tp->op == PTR || (tp->prop & TARITH)) {
inc = constnode(one);
} else {
errorp("wrong type argument to increment or decrement");
return np;
}
- return arithmetic_aop(op, np, inc);
+ return arithmetic_op(op, np, inc);
}
static Node *
Received on Fri Feb 03 2017 - 09:51:56 CET
This archive was generated by hypermail 2.3.0
: Fri Feb 03 2017 - 10:00:21 CET