mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue