ref: 4a95d9e52e8cb216f9ba963096097b4906aa49f0
parent: 9673e11f4a1c9d3376a74d444e7c2e21ad65ebf2
author: Ori Bernstein <[email protected]>
date: Thu Sep 11 20:52:15 EDT 2014
Fix the factorial calculation.
--- a/bench/bigfactorial.myr
+++ b/bench/bigfactorial.myr
@@ -16,7 +16,7 @@
x = std.mkbigint(1)
else
x = std.mkbigint(n)
- for i = n; i > 0; i--
+ for i = n-1; i > 0; i--
y = std.mkbigint(i)
std.bigmul(x, y)
std.bigfree(y)