aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-20 15:17:04 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-20 15:17:04 +0100
commit6d37ed12d2e9914bd308dbf2fd3dec166cc78af1 (patch)
tree50597ee875a84c1ec2f8c64d031cb9857c0c233f /src/check_stmt.cpp
parenteab23cd5b74b9df2f5158138510b45c83bbf1bc8 (diff)
Update internals of a Union and Tuple
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 751e9759e..cf8fa2933 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -817,7 +817,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
TypeProc *pt = &proc_type->Proc;
isize result_count = 0;
if (pt->results) {
- result_count = proc_type->Proc.results->Tuple.variable_count;
+ result_count = proc_type->Proc.results->Tuple.variables.count;
}
@@ -1474,7 +1474,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
if (match_type_kind == MatchType_Union) {
GB_ASSERT(is_type_union(bt));
bool tag_type_found = false;
- for (isize i = 0; i < bt->Union.variant_count; i++) {
+ for_array(i, bt->Union.variants) {
Type *vt = bt->Union.variants[i];
if (are_types_identical(vt, y.type)) {
tag_type_found = true;