mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-25 13:18:14 +00:00
Fix #6642
This commit is contained in:
@@ -2828,7 +2828,9 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
|
||||
if (is_type_array(dst) && is_type_array(src)) {
|
||||
Type *dst_elem = base_array_type(dst);
|
||||
Type *src_elem = base_array_type(src);
|
||||
if (dst->Array.count == src->Array.count) {
|
||||
if (dst->Array.count == src->Array.count &&
|
||||
!is_type_array_like(dst->Array.elem) &&
|
||||
!is_type_array_like(src->Array.elem)) {
|
||||
if (are_types_identical(dst_elem, src_elem)) {
|
||||
lbValue v = value;
|
||||
v.type = t;
|
||||
|
||||
Reference in New Issue
Block a user