aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-07-02 23:06:35 +0200
committerGitHub <noreply@github.com>2023-07-02 23:06:35 +0200
commit8d9adfd5488271c6e64647875341e244bdc8cb86 (patch)
treedd4671de224fbf5a9dbd9e94a2a21b8bd63f3958 /src
parenta1eae6304f92b9be1b6c084dbdbd97d62caf02c5 (diff)
parenta3e2d90f4cc591b7c2a3957aba4dc4a56451d372 (diff)
Merge pull request #2623 from laytan/fix-2615-cant-iterate-untyped-string
Fix #2615: can't iterate untyped string
Diffstat (limited to 'src')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 964ff1842..a15977b7d 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1528,7 +1528,7 @@ gb_internal void check_range_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags)
Type *t = base_type(type_deref(operand.type));
switch (t->kind) {
case Type_Basic:
- if (t->Basic.kind == Basic_string) {
+ if (t->Basic.kind == Basic_string || t->Basic.kind == Basic_UntypedString) {
is_possibly_addressable = false;
array_add(&vals, t_rune);
array_add(&vals, t_int);