Commit ce5160b8 authored by Adam Cozzette's avatar Adam Cozzette Committed by GitHub

Merge pull request #2332 from Kwizatz/master

Added explicit cast to avoid size warning on Win64.
parents d584321f 975d577a
......@@ -244,7 +244,7 @@ class LIBPROTOBUF_EXPORT MessageLite {
//
// ByteSize() is generally linear in the number of fields defined for the
// proto.
virtual int ByteSize() const { return ByteSizeLong(); }
virtual int ByteSize() const { return static_cast<int>(ByteSizeLong()); }
virtual size_t ByteSizeLong() const;
// Serializes the message without recomputing the size. The message must
......
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