Allow casting from floats to quaternions

This commit is contained in:
gingerBill
2021-11-03 12:45:19 +00:00
parent 9896205a06
commit 3d06dddb72
2 changed files with 20 additions and 0 deletions

View File

@@ -2453,6 +2453,9 @@ bool check_is_castable_to(CheckerContext *c, Operand *operand, Type *y) {
return true;
}
if (is_type_float(src) && is_type_quaternion(dst)) {
return true;
}
if (is_type_complex(src) && is_type_quaternion(dst)) {
return true;
}