From 3247d29ab7d3ce1c24c1125bdcf3eccc3f1eb788 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 20 Dec 2022 12:00:07 +0100 Subject: [PATCH] :bug: fix partial_type error --- src/parse/partial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0