From: fennecdjay Date: Sun, 13 Oct 2019 19:56:16 +0000 (+0200) Subject: :art: Update check X-Git-Tag: nightly~2149 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f8de44fd44ff91fcf188eb1acecba28f0e92b484;p=gwion.git :art: Update check --- 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; }