aboutsummaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorOskar Nordquist <oskar.nordquist@gmail.com>2020-12-13 02:36:29 +0100
committerOskar Nordquist <oskar.nordquist@gmail.com>2020-12-13 02:36:29 +0100
commit60b9ef1f5de9de7cd1ba5fce782f4fc0c0d88d2b (patch)
treef143e8315fecc331ce0d0c62500c53e480f0bd6f /core/math
parentf64584b92a54dceb28121461f2ef4fd02c7b30de (diff)
Fix math.factorial()
Diffstat (limited to 'core/math')
-rw-r--r--core/math/math.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math.odin b/core/math/math.odin
index ee93a4d8c..ca344afeb 100644
--- a/core/math/math.odin
+++ b/core/math/math.odin
@@ -508,7 +508,7 @@ factorial :: proc(n: int) -> int {
assert(n >= 0, "parameter must not be negative");
assert(n < len(table), "parameter is too large to lookup in the table");
- return 0;
+ return table[n];
}
classify_f32 :: proc(x: f32) -> Float_Class {