aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/text.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-02 23:57:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-02 23:57:30 -0400
commitbaea09062482674220a3686d488a283e6b9b8821 (patch)
tree33df470af1db2be53fabac50762c375951acb84e /src/stdlib/text.h
parent126050a6357d7ec1fd9901256de50923b6dd7c49 (diff)
parent597699243a6f935231ad83e63d22bf6ff9e4e547 (diff)
Merge branch 'zero-nones' into dev
Diffstat (limited to 'src/stdlib/text.h')
-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 281c1880..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.length < 0)) \
+ 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; \