]> Nishi Git Mirror - gwion.git/commitdiff
:bug: check_exp_call1 does not return not bool
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 4 Sep 2019 19:36:37 +0000 (21:36 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 4 Sep 2019 19:36:37 +0000 (21:36 +0200)
src/parse/check.c

index a3b0d31fe485a852543e20357dfaa29bdc5a7c47..56585ad5d9775849f76d9605f5b532b7478cbfb9 100644 (file)
@@ -784,7 +784,7 @@ ANN Type check_exp_call1(const Env env, const Exp_Call *exp) {
     return func->def->base->ret_type;
   }
   function_alternative(env, exp->func->type, exp->args, exp_self(exp)->pos);
-  return GW_ERROR;
+  return NULL;
 }
 
 ANN static Type check_exp_binary(const Env env, const Exp_Binary* bin) {