From: Jérémie Astor Date: Mon, 13 Apr 2020 16:44:18 +0000 (+0200) Subject: :art: Lint check_exp_cast X-Git-Tag: nightly~1702 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f1343e0871601042eb1491b5155645b5a04f8343;p=gwion.git :art: Lint check_exp_cast --- diff --git a/src/parse/check.c b/src/parse/check.c index bddff9fe..9f7d1f53 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -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) {