| Index: runtime/lib/double.cc
|
| ===================================================================
|
| --- runtime/lib/double.cc (revision 23089)
|
| +++ runtime/lib/double.cc (working copy)
|
| @@ -80,11 +80,7 @@
|
| Exceptions::ThrowByType(Exceptions::kUnsupported, args);
|
| }
|
| const Bigint& big = Bigint::Handle(BigintOperations::NewFromDouble(val));
|
| - if (BigintOperations::FitsIntoInt64(big)) {
|
| - return Integer::New(BigintOperations::ToInt64(big));
|
| - } else {
|
| - return big.raw();
|
| - }
|
| + return big.AsValidInteger();
|
| }
|
|
|
| DEFINE_NATIVE_ENTRY(Double_trunc_div, 2) {
|
|
|