Fix math.factorial()
This commit is contained in:
1 parent
f64584b92a
commit
60b9ef1f5d
1 file changed
+1
-1
+1
-1
@@ -508,7 +508,7 @@ factorial :: proc(n: int) -> int {
|
|||||||
|
|
||||||
assert(n >= 0, "parameter must not be negative");
|
assert(n >= 0, "parameter must not be negative");
|
||||||
assert(n < len(table), "parameter is too large to lookup in the table");
|
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 {
|
classify_f32 :: proc(x: f32) -> Float_Class {
|
||||||
|
|||||||
Reference in new issue
Block a user