diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-19 14:42:49 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-19 14:42:49 -0400 |
| commit | c814ebe71f18514c381c33aef574df0edcd0adf2 (patch) | |
| tree | d265aeafe66e85182822e365723f8ea5b181b526 /src/typecheck.c | |
| parent | a97e85655baa105642de383d11e7e7d636ecca94 (diff) | |
Fix signed comparison issues
Diffstat (limited to 'src/typecheck.c')
| -rw-r--r-- | src/typecheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typecheck.c b/src/typecheck.c index 9c4ab5b8..07c3acf9 100644 --- a/src/typecheck.c +++ b/src/typecheck.c @@ -1664,7 +1664,7 @@ PUREFUNC bool is_constant(env_t *env, ast_t *ast) { case TextLiteral: { Text_t literal = Match(ast, TextLiteral)->text; 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; } |
