From 958d684b3c9735f6acb114787c21dffe4a467772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20L=C3=B3pez?= <120128034+victor-Lopez25@users.noreply.github.com> Date: Mon, 8 Sep 2025 02:14:05 +0000 Subject: [PATCH] [Compilers] Fix struct with default initializer not using CLAY__DEFAULT_STRUCT (#498) --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 7a39781..9914844 100644 --- a/clay.h +++ b/clay.h @@ -1659,7 +1659,7 @@ Clay__MeasureTextCacheItem *Clay__MeasureTextCached(Clay_String *text, Clay_Text char current = text->chars[end]; if (current == ' ' || current == '\n') { int32_t length = end - start; - Clay_Dimensions dimensions = {}; + Clay_Dimensions dimensions = CLAY__DEFAULT_STRUCT; if (length > 0) { dimensions = Clay__MeasureText(CLAY__INIT(Clay_StringSlice) {.length = length, .chars = &text->chars[start], .baseChars = text->chars}, config, context->measureTextUserData); }