ref: 5986230634beac84ad48ce29b9842cbccbeaa286
parent: f4273538d57487fc60fae6a3c6d44b9b083aace8
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Feb 3 04:44:43 EST 2017
Revert "[cc1] Fix inc/dec operators" This reverts commit e2576771fbb06b5768b0f2fcb06941f872ec3f38.
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -608,13 +608,13 @@
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 *