summaryrefslogtreecommitdiff
path: root/deps/v8/src/log-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/log-utils.h')
-rw-r--r--deps/v8/src/log-utils.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/src/log-utils.h b/deps/v8/src/log-utils.h
index 117f098cc..3e25b0e75 100644
--- a/deps/v8/src/log-utils.h
+++ b/deps/v8/src/log-utils.h
@@ -129,9 +129,10 @@ class Log : public AllStatic {
// Implementation of writing to a log file.
static int WriteToFile(const char* msg, int length) {
ASSERT(output_handle_ != NULL);
- int rv = fwrite(msg, 1, length, output_handle_);
- ASSERT(length == rv);
- return rv;
+ size_t rv = fwrite(msg, 1, length, output_handle_);
+ ASSERT(static_cast<size_t>(length) == rv);
+ USE(rv);
+ return length;
}
// Implementation of writing to a memory buffer.