diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-03-17 03:35:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-17 03:35:17 +0100 |
| commit | 50503cb40530d81eb13056128a1419522d6a21ed (patch) | |
| tree | 37b05f3f49b772a21526cc2dc1166af1862e75b6 | |
| parent | d9ca4eb4d655f31f3bf672a56c4390190d85d841 (diff) | |
| parent | 5e04ddd653523c26a45ec2f3aee6e0a24a869675 (diff) | |
Merge pull request #1628 from StanislavNikolov/fix-math-cumsum-inplace
Fix #1627: Remove wrong return type in cumsum_inplace
| -rw-r--r-- | core/math/math.odin | 4 |
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 |