diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-03-29 15:19:47 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-03-29 15:19:47 +0000 |
commit | c8a608c6668df607638d00771d70b778b91bca81 (patch) | |
tree | ef8b929ab797155a6b23f535f5085c89fc60e84e /Objects/unicodeobject.c | |
parent | 48e2478329b6be67d7858174d146d65f6ccfe728 (diff) | |
download | cpython-git-c8a608c6668df607638d00771d70b778b91bca81.tar.gz |
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 bcae239b6a..f15e7cd16b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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: |