aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {