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
This commit is contained in:
floitschV8@gmail.com 2010-09-20 10:58:41 +00:00
parent 5a6b098527
commit 8fdf96727f

View File

@ -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;