aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-26 18:23:17 +0100
committergingerBill <bill@gingerbill.org>2018-08-26 18:23:17 +0100
commit830c194da556c8f117d4c09d2a5b5219fffffc97 (patch)
tree5c98f4772ddd549fc944d00b034798b2c3dbed72 /src
parent1830c1e57c5301151c26c0996ea5789b3b75a44f (diff)
Allow enums for array lengthsllvm-windows
Diffstat (limited to 'src')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 28f3d539d..5997a110a 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -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;