diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-26 15:14:08 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-26 15:14:08 +0000 |
| commit | f29e303ce7b11fbe88a4b63374c08130c6c189dd (patch) | |
| tree | a489ab17ff1e153891923c98597432dc98338827 /src/check_stmt.c | |
| parent | 3c9143957c1726848e7f286ca6c96d410c84b585 (diff) | |
Slices now have a capacity.
Diffstat (limited to 'src/check_stmt.c')
| -rw-r--r-- | src/check_stmt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_stmt.c b/src/check_stmt.c index 6fd7cb925..768410803 100644 --- a/src/check_stmt.c +++ b/src/check_stmt.c @@ -1258,6 +1258,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { case Entity_Variable: { Type *t = base_type(type_deref(e->type)); if (is_type_struct(t) || is_type_raw_union(t)) { + // TODO(bill): Make it work for unions too Scope **found = map_scope_get(&c->info.scopes, hash_pointer(t->Record.node)); GB_ASSERT(found != NULL); for_array(i, (*found)->elements.entries) { |