mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Merged revisions 70678 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70678 | mark.dickinson | 2009-03-29 15:37:51 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test with fabs(x) >= 1e50, and fix documentation. ........
This commit is contained in:
parent
48e2478329
commit
c8a608c666
3 changed files with 3 additions and 3 deletions
|
@ -8847,7 +8847,7 @@ formatfloat(Py_UNICODE *buf,
|
|||
return -1;
|
||||
if (prec < 0)
|
||||
prec = 6;
|
||||
if (type == 'f' && (fabs(x) / 1e25) >= 1e25)
|
||||
if (type == 'f' && fabs(x) >= 1e50)
|
||||
type = 'g';
|
||||
/* Worst case length calc to ensure no buffer overrun:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue