mirror of https://github.com/python/cpython
Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice.
This commit is contained in:
parent
a9feadc0dd
commit
8c023248ed
|
@ -939,7 +939,7 @@ format_int_or_long(PyObject* obj,
|
|||
tmp = PyNumber_Float(obj);
|
||||
if (tmp == NULL)
|
||||
goto done;
|
||||
result = format_float_internal(obj, &format);
|
||||
result = format_float_internal(tmp, &format);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue