diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-20 21:54:12 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-20 21:54:12 -0400 |
commit | e6893fe38972d2869042413a70601e6e40e0c6ab (patch) | |
tree | c41a6316b7f39b65077253e247907357a55e656d /types.c | |
parent | 1da7e2ba082c491ea63d518b67b45d31f64f3fec (diff) |
mostly fixed compile time new
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)) |