mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix #571
This commit is contained in:
@@ -2260,6 +2260,8 @@ bool check_cast_internal(CheckerContext *c, Operand *x, Type *type) {
|
|||||||
x->mode = Addressing_Value;
|
x->mode = Addressing_Value;
|
||||||
} else if (is_type_slice(type) && is_type_string(x->type)) {
|
} else if (is_type_slice(type) && is_type_string(x->type)) {
|
||||||
x->mode = Addressing_Value;
|
x->mode = Addressing_Value;
|
||||||
|
} else if (is_type_union(type)) {
|
||||||
|
x->mode = Addressing_Value;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user