Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: src/fast-dtoa.cc

Issue 3471001: Fix build-breakage on Mac. Initial variable in unreachable branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/fast-dtoa.cc
===================================================================
--- src/fast-dtoa.cc (revision 5491)
+++ src/fast-dtoa.cc (working copy)
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698