Added explicit cast to avoid size warning on Win64.
diff --git a/src/google/protobuf/message_lite.h b/src/google/protobuf/message_lite.h index d3c3b1f..8845566 100644 --- a/src/google/protobuf/message_lite.h +++ b/src/google/protobuf/message_lite.h
@@ -244,7 +244,7 @@ // // 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