From 6d37ed12d2e9914bd308dbf2fd3dec166cc78af1 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 20 Jul 2017 15:17:04 +0100 Subject: Update internals of a Union and Tuple --- src/check_decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 38923e494..6e47a2554 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -686,7 +686,7 @@ void check_proc_body(Checker *c, Token token, DeclInfo *decl, Type *type, AstNod GB_ASSERT(type->kind == Type_Proc); if (type->Proc.param_count > 0) { TypeTuple *params = &type->Proc.params->Tuple; - for (isize i = 0; i < params->variable_count; i++) { + for_array(i, params->variables) { Entity *e = params->variables[i]; if (e->kind != Entity_Variable) { continue; -- cgit v1.2.3