]> Nishi Git Mirror - gwion.git/commitdiff
:art: Lint check_exp_cast
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 16:44:18 +0000 (18:44 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 16:44:18 +0000 (18:44 +0200)
src/parse/check.c

index bddff9fe532eb4cf77b90013537edc45bfba35f7..9f7d1f536f9767299f799abdbb438be6648c600b 100644 (file)
@@ -772,10 +772,7 @@ ANN static Type check_exp_cast(const Env env, const Exp_Cast* cast) {
   CHECK_OO((exp_self(cast)->info->type = cast->td->xid ? known_type(env, cast->td) : check_td(env, cast->td)))
   struct Op_Import opi = { .op=insert_symbol("$"), .lhs=t, .rhs=exp_self(cast)->info->type,
     .data=(uintptr_t)cast, .pos=exp_self(cast)->pos, .op_type=op_cast };
-//  return op_check(env, &opi);
-  const Type ret = op_check(env, &opi);
-printf("[%s] %p\n", __func__, t);
-  return ret;
+  return op_check(env, &opi);
 }
 
 ANN static Type check_exp_post(const Env env, const Exp_Postfix* post) {