Fix conversion from float to quaternion

This commit is contained in:
gingerBill
2021-12-31 23:20:14 +00:00
parent bdf66bb1e1
commit 0d7cb02386
3 changed files with 16 additions and 25 deletions

View File

@@ -649,6 +649,13 @@ i64 check_distance_between_types(CheckerContext *c, Operand *operand, Type *type
return 4;
}
}
if (is_type_complex_or_quaternion(dst)) {
Type *elem = base_complex_elem_type(dst);
if (are_types_identical(elem, base_type(src))) {
return 5;
}
}
if (is_type_array(dst)) {
Type *elem = base_array_type(dst);