scc

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

commit a96082af4fcea1213c9336ea1478acab4dd2d89b
parent 7e457b1611c514787ce2f3c7c04b0fc46aa32850
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  5 Sep 2015 07:10:46 +0200

Increment pointer type in arguments

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

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

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