]> granicus.if.org Git - python/commitdiff
Fixed incorrect object passed into format_float_internal(). This was resulting in...
authorEric Smith <eric@trueblade.com>
Mon, 13 Apr 2009 00:29:50 +0000 (00:29 +0000)
committerEric Smith <eric@trueblade.com>
Mon, 13 Apr 2009 00:29:50 +0000 (00:29 +0000)
Objects/stringlib/formatter.h

index 86235a64b508ab292bb741b3f855fde0ea3faef1..df291584e79b3dbd3dbdc649c95157e6414d277c 100644 (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: