mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 05:34:59 -07:00
Merge branch 'master' of https://github.com/odin-lang/Odin
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user