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:
Stefan Krah 2012-04-01 23:25:34 +02:00
parent 8dbbae990c
commit 41e031004b
1 changed files with 4 additions and 1 deletions

View File

@ -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]: