Commit 8fdf9672 authored by floitschV8@gmail.com's avatar floitschV8@gmail.com

Fix build-breakage on Mac. Initial variable eventhough it is initialized in all reachable branches.

Review URL: http://codereview.chromium.org/3471001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5494 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5a6b0985
......@@ -702,7 +702,7 @@ bool FastDtoa(double v,
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 @@ bool FastDtoa(double v,
result = Grisu3Counted(v, requested_digits,
buffer, length, &decimal_exponent);
break;
default:
UNREACHABLE();
}
if (result) {
*decimal_point = *length + decimal_exponent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment