aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorDYSEQTA <7029061+DYSEQTA@users.noreply.github.com>2021-11-24 12:07:14 +1100
committerGitHub <noreply@github.com>2021-11-24 12:07:14 +1100
commit0a87ffe0e601d1092034a39ac6365e1a81e3bba1 (patch)
tree24e743182d1f379c78154041cbe916d3154f73a0 /src/check_expr.cpp
parente5f961b48f52f8346f00d43fea4700c8513c53c3 (diff)
parent5db505c42f83d5be628a3e56d6cd471a9e790428 (diff)
Merge branch 'odin-lang:master' into master
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 96ca2d308..3c884d117 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -2453,6 +2453,9 @@ bool check_is_castable_to(CheckerContext *c, Operand *operand, Type *y) {
return true;
}
+ if (is_type_float(src) && is_type_complex(dst)) {
+ return true;
+ }
if (is_type_float(src) && is_type_quaternion(dst)) {
return true;
}