Added explicit cast to avoid size warning on Win64.

pull/2332/head
Rodrigo Hernandez 8 years ago
parent 0d7199edc8
commit 975d577a2b
  1. 2
      src/google/protobuf/message_lite.h

@ -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

Loading…
Cancel
Save