Merge branch 'master' into windows-llvm-11.1.0

This commit is contained in:
gingerBill
2021-11-19 15:21:32 +00:00
2 changed files with 4 additions and 1 deletions

View File

@@ -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)
}

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_complex(dst)) {
return true;
}
if (is_type_float(src) && is_type_quaternion(dst)) {
return true;
}