From: Brendan Hansen Date: Sun, 5 Feb 2023 05:02:34 +0000 (-0600) Subject: trying to fix a weird bug X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=7372c12041e0f481e98b49e76138b96ccedacee8;p=onyx.git trying to fix a weird bug --- diff --git a/compiler/src/types.c b/compiler/src/types.c index 86d4b083..a510549b 100644 --- a/compiler/src/types.c +++ b/compiler/src/types.c @@ -49,6 +49,8 @@ static Table(u64) type_func_map; static Type* type_create(TypeKind kind, bh_allocator a, u32 extra_type_pointer_count) { Type* type = bh_alloc(a, sizeof(Type) + sizeof(Type *) * extra_type_pointer_count); + memset(type, 0, sizeof(Type)); + type->kind = kind; type->ast_type = NULL; return type;