From 19ab8a4ea413f46eaaee09e4e0716e4bcfb9f64a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 18 Apr 2022 09:12:27 +0200 Subject: [PATCH] :art: Make curry lambda use return --- src/lib/curry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0