scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit dbbd2b91eb4a5ffe7a97920ec863ddaea91114d0
parent e2576771fbb06b5768b0f2fcb06941f872ec3f38
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  3 Feb 2017 09:44:43 +0100

Revert "[cc1] Fix inc/dec operators"

This reverts commit e2576771fbb06b5768b0f2fcb06941f872ec3f38.

Diffstat:
Mcc1/expr.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -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 *