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

Unified Diff: utils/archive/utils.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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 | « tests/standalone/io/tls_socket_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/utils.dart
diff --git a/utils/archive/utils.dart b/utils/archive/utils.dart
index 1a0fc387cf10b75e85db59f41cf613af26143f34..ef685ed6e07d161e53492a180a9a0f0e87f5d870 100644
--- a/utils/archive/utils.dart
+++ b/utils/archive/utils.dart
@@ -45,7 +45,7 @@ Future call(int requestType, [int id, List args]) {
/** Converts [input] to a fixed-length list which C can understand. */
List listForC(List input) {
- var list = new List(input.length);
+ var list = new List.fixedLength(input.length);
list.setRange(0, input.length, input);
return list;
}
« no previous file with comments | « tests/standalone/io/tls_socket_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698