Update coded_stream.h

fix warning treated as error prevents building on 64-bit windows.
This commit is contained in:
topillar 2016-03-22 23:45:41 +08:00
parent 698fa8ee22
commit 64dfb5f80a

View File

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