From: Eric Smith Date: Mon, 13 Apr 2009 00:29:50 +0000 (+0000) Subject: Fixed incorrect object passed into format_float_internal(). This was resulting in... X-Git-Tag: v2.7a1~1485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c023248ed089bf6ed9cc26ad3b4925f8de6dd76;p=thirdparty%2FPython%2Fcpython.git Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice. --- diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h index 86235a64b508..df291584e79b 100644 --- a/Objects/stringlib/formatter.h +++ b/Objects/stringlib/formatter.h @@ -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: