mirror of https://github.com/python/cpython
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("# ======================================================================\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]:
|
||||
|
||||
|
|
Loading…
Reference in New Issue