Index: vm/dart_api_impl.cc |
=================================================================== |
--- vm/dart_api_impl.cc (revision 4707) |
+++ vm/dart_api_impl.cc (working copy) |
@@ -955,7 +955,7 @@ |
#if defined(DEBUG) |
Bigint& bigint = Bigint::Handle(); |
bigint ^= int_obj.raw(); |
- ASSERT(!BigintOperations::FitsIntoInt64(bigint)); |
+ ASSERT(!BigintOperations::FitsIntoMint(bigint)); |
#endif |
*fits = false; |
} |
@@ -1011,8 +1011,8 @@ |
ASSERT(int_obj.IsBigint()); |
Bigint& bigint = Bigint::Handle(); |
bigint ^= int_obj.raw(); |
- if (BigintOperations::FitsIntoInt64(bigint)) { |
- *value = BigintOperations::ToInt64(bigint); |
+ if (BigintOperations::FitsIntoMint(bigint)) { |
+ *value = BigintOperations::ToMint(bigint); |
return Api::Success(); |
} |
} |
@@ -1456,8 +1456,8 @@ |
} else if (retval.IsBigint()) { |
Bigint& bigint = Bigint::Handle(); |
bigint ^= retval.raw(); |
- if (BigintOperations::FitsIntoInt64(bigint)) { |
- *len = BigintOperations::ToInt64(bigint); |
+ if (BigintOperations::FitsIntoMint(bigint)) { |
+ *len = BigintOperations::ToMint(bigint); |
return Api::Success(); |
} else { |
return Api::NewError("Length of List object is greater than the " |