summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-20 21:54:12 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-20 21:54:12 -0400
commite6893fe38972d2869042413a70601e6e40e0c6ab (patch)
treec41a6316b7f39b65077253e247907357a55e656d /types.c
parent1da7e2ba082c491ea63d518b67b45d31f64f3fec (diff)
mostly fixed compile time new
Diffstat (limited to 'types.c')
-rw-r--r--types.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/types.c b/types.c
index fda1afa..1a92427 100644
--- a/types.c
+++ b/types.c
@@ -445,10 +445,9 @@ static Status type_cast_status(Type *from, Type *to) {
return STATUS_NONE;
if (to->kind == TYPE_FN)
return STATUS_WARN;
+ /* TODO: Cast from ptr to arr */
return STATUS_ERR;
case TYPE_ARR:
- if (to->kind == TYPE_PTR && type_eq(from->arr.of, to->ptr))
- return STATUS_NONE;
return STATUS_ERR;
case TYPE_SLICE:
if (to->kind == TYPE_PTR && type_eq(from->slice, to->ptr))