From 6c0d0daa16b964f4f14243763ab32f1650aec7e3 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 28 Jan 2023 14:25:21 +0100 Subject: [PATCH] :bug: small fix --- src/parse/operator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/operator.c b/src/parse/operator.c index c054b103..6cfd30c1 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -243,7 +243,7 @@ ANN static Type op_def(const Env env, struct Op_Import *const opi, const Func_Def fdef) { const Func_Def tmpl_fdef = cpy_func_def(env->gwion->mp, fdef); tmpl_fdef->base->tmpl->call = new_mp_vector(env->gwion->mp, - sizeof(Type_Decl*), fdef->base->tmpl->list->len); + Type_Decl*, fdef->base->tmpl->list->len); if (opi->lhs) { uint32_t idx = 0; const Type lhs = find_type(env, mp_vector_at(fdef->base->args, Arg, 0)->td); -- 2.43.0