| Index: runtime/lib/typed_data.cc
|
| ===================================================================
|
| --- runtime/lib/typed_data.cc (revision 22813)
|
| +++ runtime/lib/typed_data.cc (working copy)
|
| @@ -258,10 +258,8 @@
|
| Integer& result = Integer::Handle(); \
|
| if (value > static_cast<uint64_t>(Mint::kMaxValue)) { \
|
| result = BigintOperations::NewFromUint64(value); \
|
| - } else if (value > static_cast<uint64_t>(Smi::kMaxValue)) { \
|
| - result = Mint::New(value); \
|
| } else { \
|
| - result = Smi::New(value); \
|
| + result = Integer::New(value); \
|
| } \
|
| return result.raw(); \
|
| } \
|
| @@ -409,10 +407,8 @@
|
| }
|
| if (value > static_cast<uint64_t>(Mint::kMaxValue)) {
|
| return BigintOperations::NewFromUint64(value);
|
| - } else if (value > static_cast<uint64_t>(Smi::kMaxValue)) {
|
| - return Mint::New(value);
|
| }
|
| - return Smi::New(value);
|
| + return Integer::New(value);
|
| }
|
|
|
|
|
|
|