From 61aeb85dc4f4611599f18fcb8e084c868acc936c Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 4 Nov 2019 16:14:54 +0100 Subject: [PATCH] :art: Update --- src/import/fdef.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/import/fdef.c b/src/import/fdef.c index 53d0ef16..dd3802a0 100644 --- a/src/import/fdef.c +++ b/src/import/fdef.c @@ -53,12 +53,12 @@ ANEW ANN static Func_Base* gwi_func_base(const Gwi gwi, ImportCK *ck) { return base; } -ANN static Func_Def import_fdef(const Gwi gwi, ImportCK *ck) { +ANEW ANN static Func_Def import_fdef(const Gwi gwi, ImportCK *ck) { Func_Base* base = gwi_func_base(gwi, ck); const Func_Def fdef = new_func_def(gwi->gwion->mp, base, NULL, ck->flag | ae_flag_builtin, loc(gwi)); fdef->d.dl_func_ptr = (void*)(m_uint)ck->addr; - if(ck->tmpl) + if(base->tmpl) SET_FLAG(fdef, template); return fdef; } @@ -77,7 +77,7 @@ ANN static m_bool error_fdef(const Gwi gwi, const Func_Def fdef) { } ANN m_int gwi_func_valid(const Gwi gwi, ImportCK *ck) { - DECL_OB(Func_Def, fdef, = import_fdef(gwi, ck)) + const Func_Def fdef = import_fdef(gwi, ck); if(SAFE_FLAG(gwi->gwion->env->class_def, template)) /*return*/ section_fdef(gwi, fdef); if(traverse_func_def(gwi->gwion->env, fdef) < 0) -- 2.43.0