diff options
author | Rodrigo Hernandez <kwizatz@aeongames.com> | 2016-11-04 14:52:54 -0600 |
---|---|---|
committer | Rodrigo Hernandez <kwizatz@aeongames.com> | 2016-11-04 14:52:54 -0600 |
commit | 975d577a2b3b4d5a76e97bf93bb614bb4e3a52bb (patch) | |
tree | f85968558c61d09cbd5c861b896eb2bd0e6e6bf6 | |
parent | 0d7199edc802299bdba39400c04f119c7db82667 (diff) | |
download | protobuf-975d577a2b3b4d5a76e97bf93bb614bb4e3a52bb.tar.gz protobuf-975d577a2b3b4d5a76e97bf93bb614bb4e3a52bb.tar.bz2 protobuf-975d577a2b3b4d5a76e97bf93bb614bb4e3a52bb.zip |
Added explicit cast to avoid size warning on Win64.
-rw-r--r-- | src/google/protobuf/message_lite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/message_lite.h b/src/google/protobuf/message_lite.h index d3c3b1f0..88455669 100644 --- a/src/google/protobuf/message_lite.h +++ b/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 |