瀏覽代碼

Merge pull request #1628 from StanislavNikolov/fix-math-cumsum-inplace

Fix #1627: Remove wrong return type in cumsum_inplace
Jeroen van Rijn 3 年之前
父節點
當前提交
50503cb405
共有 1 個文件被更改,包括 2 次插入2 次删除
  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