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

Unified Diff: tools/ipc_fuzzer/message_lib/message_file_writer.cc

Issue 115673002: Fix linux/gcc compiler warnings in tools/ipc_fuzzer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « tools/ipc_fuzzer/message_lib/message_file_format.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/message_lib/message_file_writer.cc
diff --git a/tools/ipc_fuzzer/message_lib/message_file_writer.cc b/tools/ipc_fuzzer/message_lib/message_file_writer.cc
index 46953d8f5004513c47f56bdb3f44482da820d077..2bdc9ae30f70dd8a8796b1507929bfb178e9367f 100644
--- a/tools/ipc_fuzzer/message_lib/message_file_writer.cc
+++ b/tools/ipc_fuzzer/message_lib/message_file_writer.cc
@@ -79,7 +79,7 @@ bool Writer::WriteBlob(const void *buffer, size_t size) {
return false;
const char* char_buffer = static_cast<const char*>(buffer);
int ret = base::WritePlatformFileAtCurrentPos(file_, char_buffer, size);
- if (ret != size) {
+ if (ret != static_cast<int>(size)) {
LOG(ERROR) << "Failed to write " << size << " bytes.";
return false;
}
« no previous file with comments | « tools/ipc_fuzzer/message_lib/message_file_format.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698