]> Nishi Git Mirror - gwion.git/commitdiff
:art: Update check
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 13 Oct 2019 19:56:16 +0000 (21:56 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 13 Oct 2019 19:56:16 +0000 (21:56 +0200)
src/parse/check.c

index 2f93a9aeb3379c826430c494959609d03d16748c..6942acf44686b3f45753b98aa394b7eb71597096 100644 (file)
@@ -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;
 }