Review URL: http://codereview.chromium.org/3471001
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5494
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
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);
result = Grisu3Counted(v, requested_digits,
buffer, length, &decimal_exponent);
break;
+ default:
+ UNREACHABLE();
}
if (result) {
*decimal_point = *length + decimal_exponent;