Chromium Code Reviews| Index: runtime/vm/bigint_operations.cc |
| =================================================================== |
| --- runtime/vm/bigint_operations.cc (revision 31849) |
| +++ runtime/vm/bigint_operations.cc (working copy) |
| @@ -704,6 +704,9 @@ |
| bool BigintOperations::AbsFitsIntoUint64(const Bigint& bigint) { |
| + if (bigint.IsZero()) { |
| + return true; |
| + } |
| intptr_t b_length = bigint.Length(); |
| intptr_t num_bits = CountBits(bigint.GetChunkAt(b_length - 1)); |
| num_bits += (kDigitBitSize * (b_length - 1)); |