mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix #1627: Remove wrong return type in cumsum_inplace
This commit is contained in:
+2
-2
@@ -1206,7 +1206,7 @@ prod :: proc "contextless" (x: $T/[]$E) -> (res: E)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
cumsum_inplace :: proc "contextless" (x: $T/[]$E) -> T
|
cumsum_inplace :: proc "contextless" (x: $T/[]$E)
|
||||||
where intrinsics.type_is_numeric(E) {
|
where intrinsics.type_is_numeric(E) {
|
||||||
for i in 1..<len(x) {
|
for i in 1..<len(x) {
|
||||||
x[i] = x[i-1] + x[i]
|
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
|
NEG_INF_F64 :f64: 0hFFF0_0000_0000_0000
|
||||||
|
|
||||||
SNAN_F64 :f64: 0h7FF0_0000_0000_0001
|
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