Revision: 5494
Author: [email protected]
Date: Mon Sep 20 03:58:41 2010
Log: Fix build-breakage on Mac. Initial variable eventhough it is initialized in all reachable branches.
Review URL: http://codereview.chromium.org/3471001
http://code.google.com/p/v8/source/detail?r=5494

Modified:
 /branches/bleeding_edge/src/fast-dtoa.cc

=======================================
--- /branches/bleeding_edge/src/fast-dtoa.cc    Mon Sep 20 02:18:00 2010
+++ /branches/bleeding_edge/src/fast-dtoa.cc    Mon Sep 20 03:58:41 2010
@@ -702,7 +702,7 @@
   ASSERT(!Double(v).IsSpecial());

   bool result = false;
-  int decimal_exponent;
+  int decimal_exponent = 0;
   switch (mode) {
     case FAST_DTOA_SHORTEST:
       result = Grisu3(v, buffer, length, &decimal_exponent);
@@ -711,6 +711,8 @@
       result = Grisu3Counted(v, requested_digits,
                              buffer, length, &decimal_exponent);
       break;
+    default:
+      UNREACHABLE();
   }
   if (result) {
     *decimal_point = *length + decimal_exponent;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to