From 82f00b7b4a517c723b3d0bf842d216a6f74ecb9c Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 25 Sep 2019 22:39:34 +0200 Subject: [PATCH] :art: Remove arg flag --- src/parse/check.c | 2 +- src/parse/scan2.c | 2 +- util | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 1905510c..9f7f3dc0 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -212,7 +212,7 @@ ANN static Value check_non_res_value(const Env env, const Exp_Primary* primary) } return v; } else if(env->func && GET_FLAG(env->func->def, global)) { - if(!SAFE_FLAG(value, abstract) && !SAFE_FLAG(value, arg)) + if(!SAFE_FLAG(value, abstract) && value->owner) ERR_O(exp_self(primary)->pos, _("non-global variable '%s' used from global function."), s_name(primary->d.var)) } diff --git a/src/parse/scan2.c b/src/parse/scan2.c index f239b9cd..8bc91b5f 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -48,7 +48,7 @@ ANN static Value arg_value(MemPool p, const Arg_List list) { if(!var->value) { const Value v = new_value(p, list->type, var->xid ? s_name(var->xid) : (m_str)__func__); if(list->td) - v->flag = list->td->flag | ae_flag_arg; + v->flag = list->td->flag; return v; } var->value->type = list->type; diff --git a/util b/util index 3d2be8fd..719eafbf 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit 3d2be8fdf552bdded221ddb266d55043c288da4a +Subproject commit 719eafbff96155bb5018cc599023efd72265edfe -- 2.43.0