Commit 34eeeff6 authored by Feng Xiao's avatar Feng Xiao

Merge pull request #1344 from topillar/patch-1

Update coded_stream.h
parents 698fa8ee 64dfb5f8
...@@ -1136,7 +1136,7 @@ inline void CodedOutputStream::WriteVarint32(uint32 value) { ...@@ -1136,7 +1136,7 @@ inline void CodedOutputStream::WriteVarint32(uint32 value) {
// this write won't cross the end, so we can skip the checks. // this write won't cross the end, so we can skip the checks.
uint8* target = buffer_; uint8* target = buffer_;
uint8* end = WriteVarint32ToArray(value, target); uint8* end = WriteVarint32ToArray(value, target);
int size = end - target; int size = static_cast<int>(end - target);
Advance(size); Advance(size);
} else { } else {
WriteVarint32SlowPath(value); WriteVarint32SlowPath(value);
......
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