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

Unified Diff: lib/crypto/hash_utils.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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 | « lib/crypto/crypto_vm.dart ('k') | lib/json/json.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/crypto/hash_utils.dart
diff --git a/lib/crypto/hash_utils.dart b/lib/crypto/hash_utils.dart
index f1e9d52c9404428fdccc7c8ccdc953fc5d80f2e0..904a2b3921b5809de67e46972d6d68cc971cb65f 100644
--- a/lib/crypto/hash_utils.dart
+++ b/lib/crypto/hash_utils.dart
@@ -132,7 +132,7 @@ class _HashBase implements Hash {
_pendingData.add(0);
}
var lengthInBits = _lengthInBytes * _BITS_PER_BYTE;
- assert(lengthInBits < Math.pow(2, 32));
+ assert(lengthInBits < pow(2, 32));
if (_bigEndianWords) {
_pendingData.addAll(_wordToBytes(0));
_pendingData.addAll(_wordToBytes(lengthInBits & _MASK_32));
« no previous file with comments | « lib/crypto/crypto_vm.dart ('k') | lib/json/json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698