Fix Overflow exception in the bignum factorial benchmark that is due to
the recent change of the default value for context.Emax.
This commit is contained in:
parent
8dbbae990c
commit
41e031004b
|
@ -84,7 +84,10 @@ print("\n# =====================================================================
|
||||||
print("# Factorial")
|
print("# Factorial")
|
||||||
print("# ======================================================================\n")
|
print("# ======================================================================\n")
|
||||||
|
|
||||||
C.getcontext().prec = C.MAX_PREC
|
c = C.getcontext()
|
||||||
|
c.prec = C.MAX_PREC
|
||||||
|
c.Emax = C.MAX_EMAX
|
||||||
|
c.Emin = C.MIN_EMIN
|
||||||
|
|
||||||
for n in [100000, 1000000]:
|
for n in [100000, 1000000]:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue