mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 04:42:15 -04:00
Allow enums for array lengths
This commit is contained in:
1 parent
1830c1e57c
commit
830c194da5
1 file changed
+1
-1
+1
-1
@@ -1782,7 +1782,7 @@ i64 check_array_count(CheckerContext *ctx, Operand *o, Ast *e) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Type *type = base_type(o->type);
|
||||
Type *type = core_type(o->type);
|
||||
if (is_type_untyped(type) || is_type_integer(type)) {
|
||||
if (o->value.kind == ExactValue_Integer) {
|
||||
BigInt count = o->value.value_integer;
|
||||
|
||||
Reference in new issue
Block a user