aboutsummaryrefslogtreecommitdiff
path: root/core/math/math.odin
diff options
context:
space:
mode:
authorWes Hardee <weshardee@gmail.com>2021-12-18 12:43:33 -0600
committerWes Hardee <weshardee@gmail.com>2021-12-18 12:43:33 -0600
commit92ce7defb12436b81eb1f2c19fa1e01be4a8ead3 (patch)
tree75a9b9c9ad10d7a2b39b05afba2fd88a7a185f0f /core/math/math.odin
parenta48317deee95b956430ace83f0db3e34bef590dd (diff)
parent0548db423067bce16d45af651819bf56feb5d411 (diff)
Merge branch 'master' of https://github.com/weshardee/Odin
Diffstat (limited to 'core/math/math.odin')
-rw-r--r--core/math/math.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/math.odin b/core/math/math.odin
index caaa6f51b..b81598da9 100644
--- a/core/math/math.odin
+++ b/core/math/math.odin
@@ -1196,6 +1196,7 @@ sum :: proc "contextless" (x: $T/[]$E) -> (res: E)
prod :: proc "contextless" (x: $T/[]$E) -> (res: E)
where intrinsics.type_is_numeric(E) {
+ res = 1
for i in x {
res *= i
}