shithub: scc

Download patch

ref: b8d8981da6ab2fd80153db23d30ca36c6d8250fb
parent: 44acca3ccc9401ec42b10ea4f0d5fbb072faf874
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Mon Nov 1 17:37:27 EDT 2021

cc1: fix a typo and make it compile again

--- a/src/cmd/cc/cc1/decl.c
+++ b/src/cmd/cc/cc1/decl.c
@@ -171,7 +171,7 @@
 
 	if (sym->type->op == FTN && tp->op == FTN) {
 		Type *ntp = sym->type;
-		if (eqtype(ntp->type, tp->type, 1) {
+		if (eqtype(ntp->type, tp->type, 1)) {
 			if (tp->prop & TK_R)
 				tp = ntp;
 			if (sym->type->prop & TK_R)