diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-03-29 15:06:29 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-03-29 15:06:29 (GMT) |
commit | a30f349ecf57d7280bf179d6446f8fe5a3dede4f (patch) | |
tree | e8d203467074f28cb866662a0f92a20cedc30704 /Objects/unicodeobject.c | |
parent | 94cc409a113635d3df5023eed2c347ec479248d9 (diff) | |
download | cpython-a30f349ecf57d7280bf179d6446f8fe5a3dede4f.zip cpython-a30f349ecf57d7280bf179d6446f8fe5a3dede4f.tar.gz cpython-a30f349ecf57d7280bf179d6446f8fe5a3dede4f.tar.bz2 |
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.
........
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 72bfb83..70c95a1 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8228,7 +8228,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: |