aboutsummaryrefslogtreecommitdiff
path: root/stdlib/optionals.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-01-23 15:33:56 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-01-23 15:33:56 -0500
commitf93dde14496ef784df6b7b3e1de1030a868be985 (patch)
treee4f5bcc1852d13e2f2d853a1f6590ccdd93e18a2 /stdlib/optionals.c
parentc60ea2079fb230213308904cd0966e5481d2d994 (diff)
Overhaul of Text implementation to be more like Cords and have much
better performance for long sequences of repeated concatenation.
Diffstat (limited to 'stdlib/optionals.c')
-rw-r--r--stdlib/optionals.c2
1 files changed, 1 insertions, 1 deletions
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)