[hackers] [scc] Increment pointer type in arguments || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 5 Sep 2015 07:12:10 +0200 (CEST)

commit a96082af4fcea1213c9336ea1478acab4dd2d89b
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Sep 5 07:10:46 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Sep 5 07:10:46 2015 +0200

    Increment pointer type in arguments
    
    The type of every parameter is different, so the pointer must be
    incremented to match the correct type.

diff --git a/cc1/expr.c b/cc1/expr.c
index b6efe5c..651d84c 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -553,7 +553,7 @@ arguments(Node *np)
                         toomany = 1;
                         continue;
                 }
- if ((arg = convert(arg, *targs, 0)) != NULL) {
+ if ((arg = convert(arg, *targs++, 0)) != NULL) {
                         par = node(OPAR, arg->type, par, arg);
                         continue;
                 }
Received on Sat Sep 05 2015 - 07:12:10 CEST

This archive was generated by hypermail 2.3.0 : Sat Sep 05 2015 - 07:24:10 CEST