From c50e026c62f50b637bed5f132073907296594656 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 18 Aug 2021 23:20:14 +0200 Subject: [PATCH] :bug: Fix builtin tmpl --- src/parse/func_resolve_tmpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.43.0