[Python-checkins] r71548 - python/trunk/Objects/stringlib/formatter.h

eric.smith python-checkins at python.org
Mon Apr 13 02:29:50 CEST 2009


Author: eric.smith
Date: Mon Apr 13 02:29:50 2009
New Revision: 71548

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

Modified:
   python/trunk/Objects/stringlib/formatter.h

Modified: python/trunk/Objects/stringlib/formatter.h
==============================================================================
--- python/trunk/Objects/stringlib/formatter.h	(original)
+++ python/trunk/Objects/stringlib/formatter.h	Mon Apr 13 02:29:50 2009
@@ -939,7 +939,7 @@
         tmp = PyNumber_Float(obj);
         if (tmp == NULL)
             goto done;
-        result = format_float_internal(obj, &format);
+        result = format_float_internal(tmp, &format);
         break;
 
     default:


More information about the Python-checkins mailing list