Skip to content

Commit

Permalink
Merge pull request #305 from samuela/patch-1
Browse files Browse the repository at this point in the history
Make int conversion explicit and fix clang warning
  • Loading branch information
shinh authored Mar 21, 2018
2 parents 1fe7e94 + 8387539 commit 643f6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signalhandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 643f6d4

Please sign in to comment.