commit b8d8981da6ab2fd80153db23d30ca36c6d8250fb
parent 44acca3ccc9401ec42b10ea4f0d5fbb072faf874
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 1 Nov 2021 21:37:27 +0100
cc1: fix a typo and make it compile again
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/cc/cc1/decl.c b/src/cmd/cc/cc1/decl.c
@@ -171,7 +171,7 @@ redcl(Symbol *sym, Type *tp, int sclass)
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)