From 541313fc3649f10e19ce00ad960101c59d013cb0 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 14 Nov 2019 12:01:36 +0100 Subject: [PATCH] :art: Update --- src/import/checker.c | 2 +- src/import/enum.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/import/checker.c b/src/import/checker.c index be695536..ad565081 100644 --- a/src/import/checker.c +++ b/src/import/checker.c @@ -261,7 +261,7 @@ ANN m_bool _array_check(const Gwi gwi, struct array_checker *ck) { break; tmp[i] = '\0'; const m_uint num = strtol(tmp, NULL, 10);// migth use &endptr and check errno - const Exp exp = new_exp_prim_int(gwi->gwion->mp, num, loc(gwi)); + const Exp exp = new_prim_int(gwi->gwion->mp, num, loc(gwi)); array_add_exp(ck, exp); } else { if(ck->is_exp > 0) diff --git a/src/import/enum.c b/src/import/enum.c index 7fa75118..9e423e8f 100644 --- a/src/import/enum.c +++ b/src/import/enum.c @@ -21,7 +21,8 @@ ANN2(1) m_int gwi_enum_ini(const Gwi gwi, const m_str type) { CHECK_BB(ck_ini(gwi, ck_edef)) if(type) - CHECK_OB((gwi->ck->sym = str2sym(gwi, type))) +// CHECK_OB((gwi->ck->sym = str2sym(gwi, type))) + CHECK_OB((gwi->ck->xid = str2sym(gwi, type))) vector_init(&gwi->ck->v); return GW_OK; } -- 2.43.0