Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 52404:019815bc37ea legacy-trunk
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 14:37:51 +0000 |
| parents | f0e0c3536e22 |
| children | 1afb365f2448 |
line wrap: on
line diff
--- a/Objects/stringobject.c Sun Mar 29 10:19:05 2009 +0000 +++ b/Objects/stringobject.c Sun Mar 29 14:37:51 2009 +0000 @@ -4344,7 +4344,7 @@ } 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:
