浏览代码

Merge branch 'master' of https://github.com/odin-lang/Odin

gingerBill 4 年之前
父节点
当前提交
34788bfced
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/math/math.odin

+ 1 - 1
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 {