From 17e473a98a72ff217fd4e96a04538948943afa0c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 4 Dec 2024 14:18:19 -0500 Subject: Bugfix for text memory allocations --- stdlib/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/text.c b/stdlib/text.c index fed113e0..beea8ff8 100644 --- a/stdlib/text.c +++ b/stdlib/text.c @@ -1253,7 +1253,7 @@ public Text_t Text$format(const char *fmt, ...) public Array_t Text$clusters(Text_t text) { - Array_t clusters = {.atomic=1}; + Array_t clusters = {}; for (int64_t i = 1; i <= text.length; i++) { Text_t cluster = Text$slice(text, I(i), I(i)); Array$insert(&clusters, &cluster, I_small(0), sizeof(Text_t)); -- cgit v1.2.3