Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 52405:423c9477d6ef 2.6
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.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 29 Mar 2009 15:06:29 +0000 |
| parents | b8934dd9267d |
| children | bafad61cf302 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sat Mar 28 19:20:52 2009 +0000 +++ b/Objects/unicodeobject.c Sun Mar 29 15:06:29 2009 +0000 @@ -8228,7 +8228,7 @@ 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:
