From: fennecdjay Date: Fri, 4 Oct 2019 12:18:25 +0000 (+0200) Subject: :art: Improve new_type X-Git-Tag: nightly~2198^2~150 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=90fd8d0b42a0f8c2f4638cc3d08bfb8db1e59a71;p=gwion.git :art: Improve new_type --- diff --git a/src/oo/type.c b/src/oo/type.c index d1ab558e..c88d69de 100644 --- a/src/oo/type.c +++ b/src/oo/type.c @@ -44,7 +44,7 @@ Type new_type(MemPool p, const m_uint xid, const m_str name, const Type parent) type->name = name; type->e = mp_calloc(p, TypeInfo); type->e->parent = parent; - if(type->e->parent) { + if(parent) { type->size = parent->size; type->e->tuple = new_tupleform(p); }