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

Unified Diff: runtime/bin/file_android.cc

Issue 115183002: Fix 64-bit linux build after file-copy change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | runtime/bin/file_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_android.cc
diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc
index 57f765b8654082a12b84579bf0ce907dabcff781..54d86f497b8a53d9f9febd2d57677368a40946a5 100644
--- a/runtime/bin/file_android.cc
+++ b/runtime/bin/file_android.cc
@@ -241,7 +241,8 @@ bool File::Copy(const char* old_path, const char* new_path) {
int bytes = 1;
while (bytes > 0) {
// Loop to ensure we copy everything, and not only up to 2GB.
- bytes = TEMP_FAILURE_RETRY(sendfile(new_fd, old_fd, &offset, -1));
+ bytes = TEMP_FAILURE_RETRY(
+ sendfile(new_fd, old_fd, &offset, kMaxUint32));
}
if (bytes < 0) {
int e = errno;
« no previous file with comments | « no previous file | runtime/bin/file_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698