commit bb51af89d1a78297f2f6ef745166a53f42c28ebf
parent 4cc21371891720a97259de2492d5960d501db6c0
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)