Fix #2052 typo in linalg.max_single

This commit is contained in:
gingerBill
2022-09-17 10:20:52 +01:00
parent 98eaf5c6c0
commit 320b84df4f

View File

@@ -81,7 +81,7 @@ max_single :: proc(a: $T) -> (out: ELEM_TYPE(T)) where IS_NUMERIC(ELEM_TYPE(T))
} else when N == 2 {
out = builtin.max(a[0], a[1])
} else when N == 3 {
out = builtin.max(a[0], a[1], a[3])
out = builtin.max(a[0], a[1], a[2])
}else {
out = builtin.max(a[0], a[1])
for i in 2..<N {