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

Unified Diff: lib/src/base64.dart

Issue 1331313002: Don't pass type parameters to Uint8List. (Closed) Base URL: git@github.com:dart-lang/crypto.git@master
Patch Set: Created 5 years, 3 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: lib/src/base64.dart
diff --git a/lib/src/base64.dart b/lib/src/base64.dart
index d2f89b5a8e6eb0ea7d984d96d645aa33c327e28c..92a827509afe8f808836733bcb9039ed13bd1e96 100644
--- a/lib/src/base64.dart
+++ b/lib/src/base64.dart
@@ -278,7 +278,7 @@ class Base64Decoder extends Converter<String, List<int>> {
List<int> convert(String input) {
int length = input.length;
if (length == 0) {
- return new Uint8List<int>(0);
+ return new Uint8List(0);
}
int normalLength = 0;
@@ -329,7 +329,7 @@ class Base64Decoder extends Converter<String, List<int>> {
i--;
}
int outputLength = ((normalLength * 6) >> 3) - padLength;
- List<int> out = new Uint8List<int>(outputLength);
+ List<int> out = new Uint8List(outputLength);
for (int i = 0, o = 0; o < outputLength; ) {
// Accumulate 4 valid 6 bit Base 64 characters into an int.
« 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