From f8de44fd44ff91fcf188eb1acecba28f0e92b484 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 13 Oct 2019 21:56:16 +0200 Subject: [PATCH] :art: Update check --- src/parse/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse/check.c b/src/parse/check.c index 2f93a9ae..6942acf4 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -963,7 +963,8 @@ ANN static inline Type check_exp(const Env env, const Exp exp) { if(env->func && isa(curr->type, env->gwion->type[et_lambda]) < 0 && isa(curr->type, env->gwion->type[et_function]) > 0 && !GET_FLAG(curr->type->e->d.func, pure)) UNSET_FLAG(env->func, pure); - } while((prev = curr) && (curr = next)); + prev = curr; + } while((curr = next)); return exp->type; } -- 2.43.0