aboutsummaryrefslogtreecommitdiff
path: root/src/compile/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/text.c')
-rw-r--r--src/compile/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/text.c b/src/compile/text.c
index 637ad60c..3a8a227c 100644
--- a/src/compile/text.c
+++ b/src/compile/text.c
@@ -79,7 +79,7 @@ Text_t compile_text_literal(Text_t literal) {
PUREFUNC static bool string_literal_is_all_ascii(Text_t literal) {
TextIter_t state = NEW_TEXT_ITER_STATE(literal);
- for (int64_t i = 0; i < literal.length; i++) {
+ for (int64_t i = 0; i < (int64_t)literal.length; i++) {
int32_t g = Text$get_grapheme_fast(&state, i);
if (g < 0 || g > 127 || !isascii(g)) return false;
}