From f93dde14496ef784df6b7b3e1de1030a868be985 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 23 Jan 2025 15:33:56 -0500 Subject: Overhaul of Text implementation to be more like Cords and have much better performance for long sequences of repeated concatenation. --- stdlib/optionals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/optionals.c') diff --git a/stdlib/optionals.c b/stdlib/optionals.c index ccda980a..990ca138 100644 --- a/stdlib/optionals.c +++ b/stdlib/optionals.c @@ -74,7 +74,7 @@ public void Optional$deserialize(FILE *in, void *outval, Array_t *pointers, cons _deserialize(in, outval, pointers, nonnull); } else { if (nonnull->tag == TextInfo) - *(Text_t*)outval = (Text_t){.length=-1}; + *(Text_t*)outval = NONE_TEXT; else if (nonnull->tag == ArrayInfo) *(Array_t*)outval = (Array_t){.length=-1}; else if (nonnull->tag == TableInfo) -- cgit v1.2.3