aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ch. Nikolov <stanislav.ltb@gmail.com>2022-03-17 04:20:24 +0200
committerStanislav Ch. Nikolov <stanislav.ltb@gmail.com>2022-03-17 04:20:39 +0200
commit5e04ddd653523c26a45ec2f3aee6e0a24a869675 (patch)
tree37b05f3f49b772a21526cc2dc1166af1862e75b6
parentd9ca4eb4d655f31f3bf672a56c4390190d85d841 (diff)
Fix #1627: Remove wrong return type in cumsum_inplace
-rw-r--r--core/math/math.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/math.odin b/core/math/math.odin
index afbda051d..b711c160f 100644
--- a/core/math/math.odin
+++ b/core/math/math.odin
@@ -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 \ No newline at end of file
+QNAN_F64 :f64: 0h7FF8_0000_0000_0001