From: fennecdjay Date: Fri, 18 Nov 2022 11:16:19 +0000 (+0100) Subject: :bug: Fix chick_rewrite X-Git-Tag: nightly~207^2~84 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1d5f0e7e2ded60fc2da3de41e47357bc659621cc;p=gwion.git :bug: Fix chick_rewrite --- diff --git a/src/parse/operator.c b/src/parse/operator.c index 5cc642f1..d6c21521 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -307,12 +307,10 @@ ANN static Type chuck_rewrite(const Env env, const struct Op_Import *opi, const c[len - 2] = '\0'; const Exp bin = new_exp_binary(env->gwion->mp, lhs, insert_symbol(env->gwion->st, c), call, exp_self(base)->pos); base->lhs = bin; - const Symbol orig = base->op; base->op = insert_symbol(env->gwion->st, "=>"); const Type ret = check_exp(env, exp_self(base)); if(ret) return ret; env_set_error(env, false); - base->op = orig; env_warn(env, opi->pos, _("during rewriting operation")); env_set_error(env, true); return NULL;