Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice.

This commit is contained in:
Eric Smith 2009-04-13 00:29:50 +00:00
parent a9feadc0dd
commit 8c023248ed
1 changed files with 1 additions and 1 deletions

View File

@ -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: