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

Unified Diff: lib/growable_array.dart

Issue 9999009: Fix build break. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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/growable_array.dart
===================================================================
--- lib/growable_array.dart (revision 6341)
+++ lib/growable_array.dart (working copy)
@@ -79,7 +79,7 @@
}
factory GrowableObjectArray.withCapacity(int capacity) {
- var data = new ObjectArray<T>(capacity);
+ var data = new ObjectArray<T>((capacity == 0)? 4 : capacity);
return new GrowableObjectArray<T>.fromObjectArray(data);
}
« 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