mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 13:25:19 +00:00
Fix #1627: Remove wrong return type in cumsum_inplace
This commit is contained in:
@@ -1206,7 +1206,7 @@ prod :: proc "contextless" (x: $T/[]$E) -> (res: E)
|
||||
return
|
||||
}
|
||||
|
||||
cumsum_inplace :: proc "contextless" (x: $T/[]$E) -> T
|
||||
cumsum_inplace :: proc "contextless" (x: $T/[]$E)
|
||||
where intrinsics.type_is_numeric(E) {
|
||||
for i in 1..<len(x) {
|
||||
x[i] = x[i-1] + x[i]
|
||||
@@ -1736,4 +1736,4 @@ INF_F64 :f64: 0h7FF0_0000_0000_0000
|
||||
NEG_INF_F64 :f64: 0hFFF0_0000_0000_0000
|
||||
|
||||
SNAN_F64 :f64: 0h7FF0_0000_0000_0001
|
||||
QNAN_F64 :f64: 0h7FF8_0000_0000_0001
|
||||
QNAN_F64 :f64: 0h7FF8_0000_0000_0001
|
||||
|
||||
Reference in New Issue
Block a user