From 7372c12041e0f481e98b49e76138b96ccedacee8 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sat, 4 Feb 2023 23:02:34 -0600 Subject: [PATCH] trying to fix a weird bug --- compiler/src/types.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.25.1