HConstant::PrintDataTo() uses wrong format string
authorsanjoy@chromium.org <sanjoy@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 Jul 2012 11:40:39 +0000 (11:40 +0000)
committersanjoy@chromium.org <sanjoy@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 Jul 2012 11:40:39 +0000 (11:40 +0000)
Review URL: https://chromiumcodereview.appspot.com/10783031
Patch from Zheng Liu <zheng.z.liu@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12121 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/hydrogen-instructions.cc

index e0caba1..50bdd7c 100644 (file)
@@ -1479,7 +1479,7 @@ void HConstant::PrintDataTo(StringStream* stream) {
   if (has_int32_value_) {
     stream->Add("%d ", int32_value_);
   } else if (has_double_value_) {
-    stream->Add("%lf ", FmtElm(double_value_));
+    stream->Add("%f ", FmtElm(double_value_));
   } else {
     handle()->ShortPrint(stream);
   }