aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-04 14:18:19 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-04 14:18:19 -0500
commit17e473a98a72ff217fd4e96a04538948943afa0c (patch)
tree1152aa69ca34a731ca56d3f71c01324b948eb824
parentc6bcb05a4e2937374234dec05c6e8f30a711ebe9 (diff)
Bugfix for text memory allocations
-rw-r--r--stdlib/text.c2
1 files changed, 1 insertions, 1 deletions
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));