aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-17 11:54:08 +0000
committergingerBill <bill@gingerbill.org>2018-02-17 11:54:08 +0000
commitc4d2d287fc0eac7348951ce275a1f3d80f25ef3d (patch)
treee082b0f1d744689ced0cdab73dd405981cacbf3a /src/check_type.cpp
parent6a85546b761b67fa012a2cd49e32b2211bf02971 (diff)
#complete switch; Removal of dyncall
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 47e27c27d..ebcd297db 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -794,9 +794,8 @@ void check_enum_type(Checker *c, Type *enum_type, Type *named_type, AstNode *nod
GB_ASSERT(fields.count <= et->fields.count);
- enum_type->Enum.fields = fields.data;
- enum_type->Enum.field_count = cast(i32)fields.count;
- enum_type->Enum.is_export = et->is_export;
+ enum_type->Enum.fields = fields;
+ enum_type->Enum.is_export = et->is_export;
if (et->is_export) {
Scope *parent = c->context.scope->parent;
for_array(i, fields) {