From: Jérémie Astor Date: Mon, 6 Sep 2021 22:28:43 +0000 (+0200) Subject: :art: Cpy op for template funcs X-Git-Tag: nightly~467 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a535f282a52e1360701be836ba2dc94cb705484c;p=gwion.git :art: Cpy op for template funcs --- diff --git a/src/parse/func_resolve_tmpl.c b/src/parse/func_resolve_tmpl.c index 69f5e0a4..0ffbbad5 100644 --- a/src/parse/func_resolve_tmpl.c +++ b/src/parse/func_resolve_tmpl.c @@ -109,6 +109,8 @@ ANN static Func create_tmpl(const Env env, struct ResolverArgs *ra, if (func && vflag(ra->v, vflag_builtin)) { builtin_func(env->gwion->mp, func, (void*)ra->v->d.func_ref->code->native_func); set_vflag(func->value_ref, vflag_builtin); + struct Op_Import opi = { .lhs = ra->v->d.func_ref->value_ref->type, .rhs = func->value_ref->type }; + op_cpy(env, &opi); } return func; }