From 9fd35776fd12a31d1f525c7f03b94a49c7533a82 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 4 Aug 2020 14:40:11 +0100 Subject: [PATCH] Fix typos in math.odin --- core/math/math.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/math/math.odin b/core/math/math.odin index b0ae373ea..ef9f05cf7 100644 --- a/core/math/math.odin +++ b/core/math/math.odin @@ -611,7 +611,7 @@ next_power_of_two :: proc(x: int) -> int { } sum :: proc(x: $T/[]$E) -> (res: E) - where intrinsics.BuiltinProc_type_is_numeric(E) { + where intrinsics.type_is_numeric(E) { for i in x { res += i; } @@ -619,7 +619,7 @@ sum :: proc(x: $T/[]$E) -> (res: E) } prod :: proc(x: $T/[]$E) -> (res: E) - where intrinsics.BuiltinProc_type_is_numeric(E) { + where intrinsics.type_is_numeric(E) { for i in x { res *= i; } @@ -627,7 +627,7 @@ prod :: proc(x: $T/[]$E) -> (res: E) } cumsum_inplace :: proc(x: $T/[]$E) -> T - where intrinsics.BuiltinProc_type_is_numeric(E) { + where intrinsics.type_is_numeric(E) { for i in 1.. T cumsum :: proc(dst, src: $T/[]$E) -> T - where intrinsics.BuiltinProc_type_is_numeric(E) { + where intrinsics.type_is_numeric(E) { N := min(len(dst), len(src)); if N > 0 { dst[0] = src[0];