diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-03-29 14:37:51 (GMT) |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-03-29 14:37:51 (GMT) |
| commit | 2e648ecc7d7339b0a932a64c521cae8da791bfcd (patch) | |
| tree | e3fe18c1e8b6f0e1ce332502a343af8b79706568 /Objects/unicodeobject.c | |
| parent | 310916212e3320b3b100ff57bbc4ce5331ca1cfe (diff) | |
| download | cpython-2e648ecc7d7339b0a932a64c521cae8da791bfcd.zip cpython-2e648ecc7d7339b0a932a64c521cae8da791bfcd.tar.gz cpython-2e648ecc7d7339b0a932a64c521cae8da791bfcd.tar.bz2 | |
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 107ed29..4ce9bed 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8286,7 +8286,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: |
