From d52e28eb6cd7e1e26a765f8213a15c110ea8f5ee Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 16 Nov 2022 19:31:21 +0100 Subject: [PATCH] :bug: improve template.c --- src/parse/template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/template.c b/src/parse/template.c index 2684fac6..def9181e 100644 --- a/src/parse/template.c +++ b/src/parse/template.c @@ -169,7 +169,7 @@ ANN static Type _scan_type(const Env env, const Type t, Type_Decl *td) { while(d->next) d = d->next; if(!d->types) { if(!single_variadic) - ERR_N(td->pos, _("you must provide template types for type '%s' !!!"), t->name); + ERR_O(td->pos, _("you must provide template types for type '%s'"), t->name); d->types = new_mp_vector(env->gwion->mp, Type_Decl*, 0); } const Type ret = _scan_type(env, t, d); @@ -196,7 +196,7 @@ ANN Type scan_type(const Env env, const Type t, Type_Decl *td) { if (td->next) { Type_Decl *next = td->next; td->next = NULL; - const Type maybe_array = known_type(env, td); + DECL_OO(const Type, maybe_array, = known_type(env, td)); const Type owner = array_base_simple(maybe_array); td->next = next; CHECK_OO(owner); -- 2.43.0