From 291ea33939cc62420e0a3e4ae767ff7996b25ddc Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 4 Jan 2023 22:34:59 +0000 Subject: Initialize `TypePath` constructor like to keep the `Futex` constructor happy --- src/types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index ec7adab5a..5ff6d7261 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -3363,7 +3363,7 @@ gb_internal i64 type_size_of(Type *t) { } else if (t->kind != Type_Basic && t->cached_size >= 0) { return t->cached_size; } - TypePath path = {0}; + TypePath path{}; type_path_init(&path); t->cached_size = type_size_of_internal(t, &path); type_path_free(&path); @@ -3381,7 +3381,7 @@ gb_internal i64 type_align_of(Type *t) { return t->cached_align; } - TypePath path = {0}; + TypePath path{}; type_path_init(&path); t->cached_align = type_align_of_internal(t, &path); type_path_free(&path); -- cgit v1.2.3