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

Unified Diff: sdk/lib/io/file_impl.dart

Issue 13863012: Refactor List.setRange function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 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
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 32afe9af60aa2d87ab0c279f073360dcc7f08c52..71e16d461f104722da8fe092c2dcd1971defcb35 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -740,7 +740,7 @@ class _RandomAccessFile extends _FileBase implements RandomAccessFile {
}
var read = response[1];
var data = response[2];
- buffer.setRange(offset, read, data);
+ buffer.setRange(offset, offset + read, data);
return read;
});
}

Powered by Google App Engine
This is Rietveld 408576698