From 6f50222049f898f731bb2a9dbf93aa3fa41133ad Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 15 Dec 2022 14:42:07 +0100 Subject: [PATCH] :art: variable is fglobal only if there is context --- src/parse/scan1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse/scan1.c b/src/parse/scan1.c index eda5c7ea..145bc616 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -134,7 +134,8 @@ ANN static m_bool scan1_decl(const Env env, Exp_Decl *const decl) { env->class_def->size += t->size; } } - } else set_vflag(v, vflag_fglobal); // file global + } else if(env->context) + set_vflag(v, vflag_fglobal); // file global } else if (GET_FLAG(decl->td, global)) SET_FLAG(v, global); nspc_add_value(env->curr, vd->xid, v); -- 2.43.0