From: fennecdjay Date: Thu, 14 Nov 2019 11:01:36 +0000 (+0100) Subject: :art: Update X-Git-Tag: nightly~2102 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=541313fc3649f10e19ce00ad960101c59d013cb0;p=gwion.git :art: Update --- 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; }