From: fennecdjay Date: Sat, 28 Jan 2023 13:25:21 +0000 (+0100) Subject: :bug: small fix X-Git-Tag: nightly~206^2~7 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6c0d0daa16b964f4f14243763ab32f1650aec7e3;p=gwion.git :bug: small fix --- 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);