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

Unified Diff: pkg/barback/lib/src/utils.dart

Issue 62443006: Fix an analyzer error in http and barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/utils.dart
diff --git a/pkg/barback/lib/src/utils.dart b/pkg/barback/lib/src/utils.dart
index ad97460c54facd74633c1d944eb7fc8c35002f98..95f69e86064189581a0fc075d3aebb1b6e6ca43e 100644
--- a/pkg/barback/lib/src/utils.dart
+++ b/pkg/barback/lib/src/utils.dart
@@ -85,7 +85,9 @@ String byteToHex(int byte) {
/// If [input] is a [TypedData], this just returns a view on [input].
Uint8List toUint8List(List<int> input) {
if (input is Uint8List) return input;
- if (input is TypedData) return new Uint8List.view(input.buffer);
+ if (input is TypedData) {
+ return new Uint8List.view((input as TypedData).buffer);
Bob Nystrom 2013/11/16 00:59:16 I thought the analyzer was supposed to allow this
nweiz 2013/11/16 01:12:50 Done.
+ }
return new Uint8List.fromList(input);
}
« no previous file with comments | « no previous file | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698