From adce53f009df70a80b135a614541a5b358621d73 Mon Sep 17 00:00:00 2001 From: ceriel2 Date: Fri, 28 Aug 1987 09:56:00 +0000 Subject: [PATCH] fix for statics in nested blocks --- lang/cem/cemcom/declar.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/cem/cemcom/declar.g b/lang/cem/cemcom/declar.g index 0453d846e..fe5c0d65d 100644 --- a/lang/cem/cemcom/declar.g +++ b/lang/cem/cemcom/declar.g @@ -169,7 +169,7 @@ initializer(struct idf *idf; int sc;) { struct expr *expr = (struct expr *) 0; int globalflag = level == L_GLOBAL || - (level == L_LOCAL && sc == STATIC); + (level >= L_LOCAL && sc == STATIC); } : { if (idf->id_def->df_type->tp_fund == FUNCTION) { -- 2.34.1