summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-13 00:29:50 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-13 00:29:50 (GMT)
commit8c023248ed089bf6ed9cc26ad3b4925f8de6dd76 (patch)
tree1c3ae98db9d303bb1ff75474e046051f9e28bb97 /Objects
parenta9feadc0dda07f99aa9662d9467c1c8eb9454ba5 (diff)
downloadcpython-8c023248ed089bf6ed9cc26ad3b4925f8de6dd76.zip
cpython-8c023248ed089bf6ed9cc26ad3b4925f8de6dd76.tar.gz
cpython-8c023248ed089bf6ed9cc26ad3b4925f8de6dd76.tar.bz2
Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringlib/formatter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h
index 86235a6..df29158 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: