From f841c90499ace5f55d0eb042db7fa73807c72679 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 29 May 2023 16:48:58 +0200 Subject: [PATCH] :art: enums assign at def (fix) --- src/parse/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0