diff options
| author | gingerBill <bill@gingerbill.org> | 2020-12-13 17:09:47 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-12-13 17:09:47 +0000 |
| commit | 34788bfced6496b03e8cdc8532efcd45ff68e610 (patch) | |
| tree | d674f790c1593eb21080f48de7637dd704c8f73c /core | |
| parent | cffbd2d2761f4019b82204593a55063cc0480a75 (diff) | |
| parent | 9250e4d3df7381d8f219d9ec40bf3b54f5a66bfe (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'core')
| -rw-r--r-- | core/math/math.odin | 2 |
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 { |