Commit 78ce8755 authored by tsepez@chromium.org's avatar tsepez@chromium.org

Fix linux/gcc compiler warnings in tools/ipc_fuzzer.

It's really sad when your ASCII art breaks the compilation, but ending
a //-style comment line with a \ means the comment continues and this is
flagged as a bad thing (tm).

The other change is a signed/unsigned comparison, which is OK because it
is range checked prior to casting.

BUG=

Review URL: https://codereview.chromium.org/115673002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241109 0039d316-1c4b-4281-b951-d872f2087c98
parent 9934a3f3
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
// | ... | // | ... |
// |------------------------| // |------------------------|
// | type = 0x0002070f | // | type = 0x0002070f |
// | string_table_offset = ---. // | string_table_offset = ----+
// |------------------------| \ // |------------------------| |
// | ... | | // | ... | |
// |========================| | // |========================| |
// | message name | | // | message name | |
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
// | message name | | // | message name | |
// |------------------------| | // |------------------------| |
// | ... | | // | ... | |
// |------------------------| / // |------------------------| |
// | "ViewHostMsg_OpenURL" <--* // | "ViewHostMsg_OpenURL" <---+
// |------------------------| // |------------------------|
// | ... | // | ... |
// |========================| // |========================|
......
...@@ -79,7 +79,7 @@ bool Writer::WriteBlob(const void *buffer, size_t size) { ...@@ -79,7 +79,7 @@ bool Writer::WriteBlob(const void *buffer, size_t size) {
return false; return false;
const char* char_buffer = static_cast<const char*>(buffer); const char* char_buffer = static_cast<const char*>(buffer);
int ret = base::WritePlatformFileAtCurrentPos(file_, char_buffer, size); int ret = base::WritePlatformFileAtCurrentPos(file_, char_buffer, size);
if (ret != size) { if (ret != static_cast<int>(size)) {
LOG(ERROR) << "Failed to write " << size << " bytes."; LOG(ERROR) << "Failed to write " << size << " bytes.";
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment