mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-23 20:58:22 -04:00
Fix conversion from float to quaternion
This commit is contained in:
1 parent
bdf66bb1e1
commit
0d7cb02386
3 files changed
+16
-25
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user