From: fennecdjay Date: Mon, 29 May 2023 14:48:58 +0000 (+0200) Subject: :art: enums assign at def (fix) X-Git-Tag: nightly~155 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f841c90499ace5f55d0eb042db7fa73807c72679;p=gwion.git :art: enums assign at def (fix) --- diff --git a/src/parse/check.c b/src/parse/check.c index 83460f61..ccd578dd 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1332,8 +1332,8 @@ ANN m_bool check_enum_def(const Env env, const Enum_Def edef) { const m_uint scope = env_push_type(env, edef->type); ID_List list = edef->list; for(uint32_t i = 0; i < list->len; i++) { - Symbol xid = *mp_vector_at(list, Symbol, i); - decl_static(env, nspc_lookup_value0(env->curr, xid)); + EnumValue ev= *mp_vector_at(list, EnumValue, i); + decl_static(env, nspc_lookup_value0(env->curr, ev.xid)); } env_pop(env, scope); return GW_OK;