aboutsummaryrefslogtreecommitdiff
path: root/stdlib/text.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-21 16:16:33 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-21 16:16:33 -0400
commit0ef96cb3c0d79ecd1ca4a1f04b58ee6dd0e03586 (patch)
tree4ed86bf5ee7b33fd258c692b7d877bc2574dccf1 /stdlib/text.h
parent0b76011a45b421b1473e9be75e538d3ceadf1140 (diff)
Fix issue with constant initializers for metamethods
Diffstat (limited to 'stdlib/text.h')
-rw-r--r--stdlib/text.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/text.h b/stdlib/text.h
index e2b0984b..0a44f4e4 100644
--- a/stdlib/text.h
+++ b/stdlib/text.h
@@ -86,7 +86,7 @@ MACROLIKE int32_t Text$get_grapheme(Text_t text, int64_t index)
extern const TypeInfo_t Text$info;
extern Text_t EMPTY_TEXT;
-#define Text$metamethods ((metamethods_t){ \
+#define Text$metamethods { \
.as_text=Text$as_text, \
.hash=Text$hash, \
.compare=Text$compare, \
@@ -94,6 +94,6 @@ extern Text_t EMPTY_TEXT;
.is_none=Text$is_none, \
.serialize=Text$serialize, \
.deserialize=Text$deserialize, \
-})
+}
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0