Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1400)

Unified Diff: runtime/vm/bigint_operations.cc

Issue 9600078: Make pow call unambiguous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bigint_operations.cc
diff --git a/runtime/vm/bigint_operations.cc b/runtime/vm/bigint_operations.cc
index 1a12e582e815f794e81a8bcf5b6f357795ac6b50..71b593bdb4b436199afa7116bd5e84bab1b39802 100644
--- a/runtime/vm/bigint_operations.cc
+++ b/runtime/vm/bigint_operations.cc
@@ -379,7 +379,7 @@ const char* BigintOperations::ToDecimalCString(
// handled.
const intptr_t kDivisorValue = 100000000;
const int kPowerOfTen = 8;
- ASSERT(pow(10, kPowerOfTen) == kDivisorValue);
+ ASSERT(pow(10.0, kPowerOfTen) == kDivisorValue);
ASSERT(static_cast<Chunk>(kDivisorValue) < kDigitMaxValue);
ASSERT(Smi::IsValid(kDivisorValue));
const Bigint& divisor = Bigint::Handle(NewFromInt64(kDivisorValue));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698