mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #2615: can't iterate untyped string
This commit is contained in:
+1
-1
@@ -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));
|
Type *t = base_type(type_deref(operand.type));
|
||||||
switch (t->kind) {
|
switch (t->kind) {
|
||||||
case Type_Basic:
|
case Type_Basic:
|
||||||
if (t->Basic.kind == Basic_string) {
|
if (t->Basic.kind == Basic_string || t->Basic.kind == Basic_UntypedString) {
|
||||||
is_possibly_addressable = false;
|
is_possibly_addressable = false;
|
||||||
array_add(&vals, t_rune);
|
array_add(&vals, t_rune);
|
||||||
array_add(&vals, t_int);
|
array_add(&vals, t_int);
|
||||||
|
|||||||
Reference in New Issue
Block a user