]> Nishi Git Mirror - gwion.git/commitdiff
:art: Make curry lambda use return
authorJérémie Astor <fennecdjay@gmail.com>
Mon, 18 Apr 2022 07:12:27 +0000 (09:12 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Mon, 18 Apr 2022 07:12:27 +0000 (09:12 +0200)
src/lib/curry.c

index ab4f6f4e45fd516a8453d61d3e59da469387df16..75e84fda9f0ec061c40d253ef46b323f9554d8b1 100644 (file)
@@ -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);
 }