shithub: scc

Download patch

ref: a96082af4fcea1213c9336ea1478acab4dd2d89b
parent: 7e457b1611c514787ce2f3c7c04b0fc46aa32850
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Sep 5 03:10:46 EDT 2015

Increment pointer type in arguments

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

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -553,7 +553,7 @@
 			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;
 		}