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

Unified Diff: runtime/bin/file_linux.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 | « runtime/bin/file_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_linux.cc
diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc
index 69dff89a2e811c2300e0247ebd01abe42832a93f..40b73c91f995c4c4f7c7abd8b977f6d1dee0d835 100644
--- a/runtime/bin/file_linux.cc
+++ b/runtime/bin/file_linux.cc
@@ -242,7 +242,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(sendfile64(new_fd, old_fd, &offset, -1));
+ bytes = TEMP_FAILURE_RETRY(
+ sendfile64(new_fd, old_fd, &offset, kMaxUint32));
}
if (bytes < 0) {
int e = errno;
« no previous file with comments | « runtime/bin/file_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698