[hackers] [scc] [cc1] Fix call to parithmetic() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 30 Sep 2016 10:53:32 +0200 (CEST)

commit 70d8b2ec0842c164102d6c9e2d11362ded79dde3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Sep 30 10:19:54 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Sep 30 10:19:54 2016 +0200

    [cc1] Fix call to parithmetic()
    
    The order of the parameters was incorrect, meaning that left and right
    children were exchanged.

diff --git a/cc1/expr.c b/cc1/expr.c
index 1a75299..9543c69 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -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");
Received on Fri Sep 30 2016 - 10:53:32 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 30 2016 - 11:00:17 CEST