| Index: runtime/bin/file_support.cc
|
| diff --git a/runtime/bin/file_support.cc b/runtime/bin/file_support.cc
|
| index 0ad5edcce25ede6116e30df73f7389cd7dda2c05..41de7026057334173353297c3657dc96aa0186d5 100644
|
| --- a/runtime/bin/file_support.cc
|
| +++ b/runtime/bin/file_support.cc
|
| @@ -50,7 +50,7 @@ bool File::ReadFully(void* buffer, int64_t num_bytes) {
|
| if (bytes_read <= 0) {
|
| return false;
|
| }
|
| - remaining -= bytes_read; // Reduce the number of remaining bytes.
|
| + remaining -= bytes_read; // Reduce the number of remaining bytes.
|
| current_buffer += bytes_read; // Move the buffer forward.
|
| }
|
| return true;
|
| @@ -65,7 +65,7 @@ bool File::WriteFully(const void* buffer, int64_t num_bytes) {
|
| if (bytes_written < 0) {
|
| return false;
|
| }
|
| - remaining -= bytes_written; // Reduce the number of remaining bytes.
|
| + remaining -= bytes_written; // Reduce the number of remaining bytes.
|
| current_buffer += bytes_written; // Move the buffer forward.
|
| }
|
| if (capture_stdout || capture_stderr) {
|
| @@ -85,10 +85,8 @@ bool File::WriteFully(const void* buffer, int64_t num_bytes) {
|
|
|
|
|
| File::FileOpenMode File::DartModeToFileMode(DartFileOpenMode mode) {
|
| - ASSERT((mode == File::kDartRead) ||
|
| - (mode == File::kDartWrite) ||
|
| - (mode == File::kDartAppend) ||
|
| - (mode == File::kDartWriteOnly) ||
|
| + ASSERT((mode == File::kDartRead) || (mode == File::kDartWrite) ||
|
| + (mode == File::kDartAppend) || (mode == File::kDartWriteOnly) ||
|
| (mode == File::kDartWriteOnlyAppend));
|
| if (mode == File::kDartWrite) {
|
| return File::kWriteTruncate;
|
|
|