From a44c72816d3755a5abe5e4b2dcb6485dad46a1bc Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 11 Dec 2022 19:06:37 +0100 Subject: [PATCH] :bug: Fix dict --- src/lib/dict.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.43.0