aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-01 13:05:48 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-01 13:05:48 -0400
commit6be5430c131311106d720a4573e7509bd8b5a346 (patch)
tree16bf786e5ff69bcc93e05b34a3253c5b6268dbdd /src/stdlib
parentfb32f766501e089953e8cb0353e60af7bc8fc042 (diff)
Fix up some more none cases
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/text.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/text.h b/src/stdlib/text.h
index 75f300eb..821325a9 100644
--- a/src/stdlib/text.h
+++ b/src/stdlib/text.h
@@ -59,7 +59,7 @@ OptionalText_t Text$cluster(Text_t text, Int_t index_int);
const Text_t text = text_expr; \
Int_t index = index_expr; \
OptionalText_t cluster = Text$cluster(text, index); \
- if (unlikely(!cluster.has_value)) \
+ if (unlikely(cluster.tag == TEXT_NONE)) \
fail_source(__SOURCE_FILE__, start, end, "Invalid text index: ", index, " (text has length ", \
(int64_t)text.length, ")\n"); \
cluster; \