mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-22 09:53:23 +00:00
Merge branch 'master' into windows-llvm-11.1.0
This commit is contained in:
@@ -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)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user