From f28b217789f83ba2f922f7e41f16b1d476bb5f8d Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 20 Dec 2022 12:18:59 +0100 Subject: [PATCH] :art: update closure.c --- src/lib/closure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/closure.c b/src/lib/closure.c index d58ba0ce..b747f0a3 100644 --- a/src/lib/closure.c +++ b/src/lib/closure.c @@ -130,7 +130,7 @@ ANN static m_bool emit_fptr_assign(const Emitter emit, const Type lhs, const Typ e->d.prim.value = cap->orig; e->type = cap->orig->type; exp_setvar(e, cap->is_ref); - emit_exp(emit, e); + CHECK_BB(emit_exp(emit, e)); if(!cap->is_ref && tflag(cap->temp->type, tflag_compound)) emit_compound_addref(emit, cap->temp->type, cap->temp->type->size, 0); offset += cap->temp->type->size; @@ -623,7 +623,7 @@ static OP_CHECK(opck_op_cast) { static OP_CHECK(opck_func_partial) { Exp_Call *call = (Exp_Call*)data; - return partial_type(env, call); + return partial_type(env, call) ?: env->gwion->type[et_error]; } static OP_CHECK(opck_class_partial) { -- 2.43.0