Merge pull request #305 from samuela/patch-1

Make int conversion explicit and fix clang warning
This commit is contained in:
Shinichiro Hamaji 2018-03-21 21:43:40 +09:00 committed by GitHub
commit 643f6d4678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ class MinimalFormatter {
}
// 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.
void AppendString(const char* str) {