From 60b9ef1f5de9de7cd1ba5fce782f4fc0c0d88d2b Mon Sep 17 00:00:00 2001 From: Oskar Nordquist Date: Sun, 13 Dec 2020 02:36:29 +0100 Subject: [PATCH] Fix math.factorial() --- core/math/math.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {