scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 70d8b2ec0842c164102d6c9e2d11362ded79dde3
parent bea83b8b7641be12d18d3f69f658261459de7fc4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 30 Sep 2016 10:19:54 +0200

[cc1] Fix call to parithmetic()

The order of the parameters was incorrect, meaning that left and right
children were exchanged.

Diffstat:
Mcc1/expr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -348,7 +348,7 @@ arithmetic(char op, Node *lp, Node *rp) case OA_SUB: case OINC: case ODEC: - return parithmetic(op, rp, lp); + return parithmetic(op, lp, rp); } } errorp("incorrect arithmetic operands");