@@ -20,7 +20,7 @@ swap :: proc(array: $T/[]$E, a, b: int) {
}
swap_between :: proc(a, b: $T/[]$E) {
- n := min(len(a), len(b))
+ n := builtin.min(len(a), len(b))
if n >= 0 {
ptr_swap_overlapping(&a[0], &b[0], size_of(E)*n)
@@ -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)) {