Unverified Commit 83875398 authored by samuela's avatar samuela Committed by GitHub

Make int conversion explicit and fix clang warning

parent 1fe7e94a
...@@ -93,7 +93,7 @@ class MinimalFormatter { ...@@ -93,7 +93,7 @@ class MinimalFormatter {
} }
// Returns the number of bytes written in the buffer. // Returns the number of bytes written in the buffer.
int num_bytes_written() const { return cursor_ - buffer_; } int num_bytes_written() const { return (int) (cursor_ - buffer_); }
// Appends string from "str" and updates the internal cursor. // Appends string from "str" and updates the internal cursor.
void AppendString(const char* str) { void AppendString(const char* str) {
......
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