From: Jérémie Astor Date: Wed, 18 Aug 2021 21:20:14 +0000 (+0200) Subject: :bug: Fix builtin tmpl X-Git-Tag: nightly~470^2~48 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c50e026c62f50b637bed5f132073907296594656;p=gwion.git :bug: Fix builtin tmpl --- diff --git a/src/parse/func_resolve_tmpl.c b/src/parse/func_resolve_tmpl.c index ba57ee5f..69f5e0a4 100644 --- a/src/parse/func_resolve_tmpl.c +++ b/src/parse/func_resolve_tmpl.c @@ -106,8 +106,10 @@ ANN static Func create_tmpl(const Env env, struct ResolverArgs *ra, fdef->base->tmpl->base = i; const Func func = ensure_tmpl(env, fdef, ra->e); if (!func && !fdef->base->func) free_func_def(env->gwion->mp, fdef); - if (func && vflag(ra->v, vflag_builtin)) + 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); + } return func; }