fix for statics in nested blocks
This commit is contained in:
parent
c5d9d997b0
commit
adce53f009
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ initializer(struct idf *idf; int sc;)
|
||||||
{
|
{
|
||||||
struct expr *expr = (struct expr *) 0;
|
struct expr *expr = (struct expr *) 0;
|
||||||
int globalflag = level == L_GLOBAL ||
|
int globalflag = level == L_GLOBAL ||
|
||||||
(level == L_LOCAL && sc == STATIC);
|
(level >= L_LOCAL && sc == STATIC);
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
{ if (idf->id_def->df_type->tp_fund == FUNCTION) {
|
{ if (idf->id_def->df_type->tp_fund == FUNCTION) {
|
||||||
|
|
Loading…
Reference in a new issue