Skip to content

Commit

Permalink
Allow enums for array lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Aug 26, 2018
1 parent 1830c1e commit 830c194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/check_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 830c194

Please sign in to comment.