Browse Source

Fix #1627: Remove wrong return type in cumsum_inplace

Stanislav Ch. Nikolov 3 years ago
parent
commit
5e04ddd653
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/math/math.odin

+ 2 - 2
core/math/math.odin

@@ -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