mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Allow cast from float to complex
This commit is contained in:
@@ -2453,6 +2453,9 @@ bool check_is_castable_to(CheckerContext *c, Operand *operand, Type *y) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_type_float(src) && is_type_complex(dst)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (is_type_float(src) && is_type_quaternion(dst)) {
|
if (is_type_float(src) && is_type_quaternion(dst)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user