Fix an implicit cast from int64 to double in the i18n extension

On MSVS, this throws an error

BUG=v8:2745
R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/18854002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15557 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jochen@chromium.org 2013-07-08 15:22:12 +00:00
parent 23695eb86e
commit ae2709f800

View File

@ -148,10 +148,10 @@ void NumberFormat::JSInternalParse(
args.GetReturnValue().Set(result.getDouble());
return;
case icu::Formattable::kLong:
args.GetReturnValue().Set(v8::Number::New(result.getLong()));
args.GetReturnValue().Set(result.getLong());
return;
case icu::Formattable::kInt64:
args.GetReturnValue().Set(v8::Number::New(result.getInt64()));
args.GetReturnValue().Set(static_cast<double>(result.getInt64()));
return;
default:
return;