Kaydet (Commit) 8c023248 authored tarafından Eric Smith's avatar Eric Smith

Fixed incorrect object passed into format_float_internal(). This was resulting…

Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice.
üst a9feadc0
...@@ -939,7 +939,7 @@ format_int_or_long(PyObject* obj, ...@@ -939,7 +939,7 @@ format_int_or_long(PyObject* obj,
tmp = PyNumber_Float(obj); tmp = PyNumber_Float(obj);
if (tmp == NULL) if (tmp == NULL)
goto done; goto done;
result = format_float_internal(obj, &format); result = format_float_internal(tmp, &format);
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment