diff options
Diffstat (limited to 'Objects/stringlib/formatter.h')
| -rw-r--r-- | Objects/stringlib/formatter.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h index 2e3e5a6758..86235a64b5 100644 --- a/Objects/stringlib/formatter.h +++ b/Objects/stringlib/formatter.h @@ -789,7 +789,7 @@ format_float_internal(PyObject *value,      if (precision < 0)          precision = 6; -    if (type == 'f' && (fabs(x) / 1e25) >= 1e25) +    if (type == 'f' && fabs(x) >= 1e50)          type = 'g';      /* cast "type", because if we're in unicode we need to pass a  | 
