From: fennecdjay Date: Tue, 20 Dec 2022 11:00:07 +0000 (+0100) Subject: :bug: fix partial_type error X-Git-Tag: nightly~207^2~35 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3247d29ab7d3ce1c24c1125bdcf3eccc3f1eb788;p=gwion.git :bug: fix partial_type error --- diff --git a/src/parse/partial.c b/src/parse/partial.c index 52e34228..158e1f05 100644 --- a/src/parse/partial.c +++ b/src/parse/partial.c @@ -228,5 +228,5 @@ ANN Type partial_type(const Env env, Exp_Call *const call) { exp->exp_type = ae_exp_lambda; const m_bool ret = traverse_func_def(env, exp->d.exp_lambda.def); nspc_pop_value(env->gwion->mp, env->curr); - return ret ? exp->d.exp_lambda.def->base->func->value_ref->type : NULL; + return ret > 0 ? exp->d.exp_lambda.def->base->func->value_ref->type : NULL; }