shithub: scc

Download patch

ref: d3344817e4d71f8bebc20ea57eace1ac53e5cc3d
parent: 12ae7b469328c8724bdc595f4df95c9b96a1894c
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Sat Oct 10 08:32:04 EDT 2015

emitcast: fix format string, actually use second parameter

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -324,7 +324,7 @@
 
 	emitnode(lp);
 	if (np->type != voidtype)
-		printf("\tg%c", lp->type->letter, np->type->letter);
+		printf("\tg%c", np->type->letter);
 }
 
 static void