From: fennecdjay Date: Sun, 11 Dec 2022 18:06:37 +0000 (+0100) Subject: :bug: Fix dict X-Git-Tag: nightly~207^2~43 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a44c72816d3755a5abe5e4b2dcb6485dad46a1bc;p=gwion.git :bug: Fix dict --- diff --git a/src/lib/dict.c b/src/lib/dict.c index 0e8c2a81..38f57e4c 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -417,8 +417,8 @@ if(info->is_var) { const m_uint grow_pc = emit_code_size(emit); emit_add_instr(emit, hmap_grow_dec); const Instr endgrow = emit_add_instr(emit, BranchNeqInt); - emit_exp(emit, call.d.exp_call.func); - emit_exp_call1(emit, call.d.exp_call.func->type->info->func, true); + CHECK_BB(emit_exp(emit, call.d.exp_call.func)); + CHECK_BB(emit_exp_call1(emit, call.d.exp_call.func->type->info->func, true)); emit_add_instr(emit, hmap_find); const Instr regrow = emit_add_instr(emit, BranchEqInt); regrow->m_val = grow_pc; @@ -511,8 +511,9 @@ static OP_EMIT(opem_dict_access) { const Array_Sub array = &info->array; const Exp enext = array->exp->next; array->exp->next = NULL; - _opem_dict_access(emit, data); + const m_bool ret = _opem_dict_access(emit, data); array->exp->next = enext; + CHECK_BB(ret); return !enext ? GW_OK : emit_next_access(emit, info); }