aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-17 15:20:11 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-17 15:20:11 +0000
commit383f5b55ad76d6b670b6ae7e2816cc4d8f0d8731 (patch)
treef3f3b9affae69d2c4a2f0c9406a5df708faed486 /src/check_stmt.c
parent6dc6b6f8aaa3289ae32746367089f9f77be9a623 (diff)
Best viable overloading procedure algorithm; `no_alias`; call expr style casts
Diffstat (limited to 'src/check_stmt.c')
-rw-r--r--src/check_stmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_stmt.c b/src/check_stmt.c
index e877bc190..e956bff81 100644
--- a/src/check_stmt.c
+++ b/src/check_stmt.c
@@ -680,11 +680,13 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
}
break;
case Type_Array:
+ // val = make_type_pointer(c->allocator, t->Array.elem);
val = t->Array.elem;
idx = t_int;
break;
case Type_Slice:
- val = t->Array.elem;
+ // val = make_type_pointer(c->allocator, t->Slice.elem);
+ val = t->Slice.elem;
idx = t_int;
break;
}