From 90fd8d0b42a0f8c2f4638cc3d08bfb8db1e59a71 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 4 Oct 2019 14:18:25 +0200 Subject: [PATCH] :art: Improve new_type --- src/oo/type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0