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

Unified Diff: runtime/bin/file.cc

Issue 169893003: Another round of cleanups for http://www.dartbug.com/15922 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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: runtime/bin/file.cc
===================================================================
--- runtime/bin/file.cc (revision 32732)
+++ runtime/bin/file.cc (working copy)
@@ -31,7 +31,7 @@
int64_t remaining = num_bytes;
char* current_buffer = reinterpret_cast<char*>(buffer);
while (remaining > 0) {
- int bytes_read = Read(current_buffer, remaining);
+ int64_t bytes_read = Read(current_buffer, remaining);
if (bytes_read <= 0) {
return false;
}
@@ -46,7 +46,7 @@
int64_t remaining = num_bytes;
const char* current_buffer = reinterpret_cast<const char*>(buffer);
while (remaining > 0) {
- int bytes_read = Write(current_buffer, remaining);
+ int64_t bytes_read = Write(current_buffer, remaining);
if (bytes_read < 0) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698