diff options
author | Feng Xiao <xiaofeng@google.com> | 2016-03-22 10:19:42 -0700 |
---|---|---|
committer | Feng Xiao <xiaofeng@google.com> | 2016-03-22 10:19:42 -0700 |
commit | 34eeeff6407c947d481f4a7726774d23dc8fd321 (patch) | |
tree | ddfb1f1e92e051f3fa1f765c56d45f1a3b4657c5 | |
parent | 698fa8ee22a96ba35bcf1487bd372616cf67b565 (diff) | |
parent | 64dfb5f80a4c09ebf09d7f5c2bf0655c840e690b (diff) |
Merge pull request #1344 from topillar/patch-1
Update coded_stream.h
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index e3771003..c81a33ac 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -1136,7 +1136,7 @@ inline void CodedOutputStream::WriteVarint32(uint32 value) { // this write won't cross the end, so we can skip the checks. uint8* target = buffer_; uint8* end = WriteVarint32ToArray(value, target); - int size = end - target; + int size = static_cast<int>(end - target); Advance(size); } else { WriteVarint32SlowPath(value); |