From: Jérémie Astor Date: Mon, 18 Apr 2022 07:12:27 +0000 (+0200) Subject: :art: Make curry lambda use return X-Git-Tag: nightly~302 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=19ab8a4ea413f46eaaee09e4e0716e4bcfb9f64a;p=gwion.git :art: Make curry lambda use return --- diff --git a/src/lib/curry.c b/src/lib/curry.c index ab4f6f4e..75e84fda 100644 --- a/src/lib/curry.c +++ b/src/lib/curry.c @@ -62,7 +62,7 @@ ANN static Stmt curry_code(const Env env, const Exp efun, const Exp earg) { const Exp arg = curry_call(env, earg); const Exp exp = new_exp_call(env->gwion->mp, efun, arg, efun->pos); Stmt stmt = mp_vector_at(slist, struct Stmt_, 0); - stmt->stmt_type = ae_stmt_exp; + stmt->stmt_type = ae_stmt_return; stmt->d.stmt_exp.val = exp; return new_stmt_code(env->gwion->mp, slist, efun->pos); }