| Index: courgette/streams.cc
|
| diff --git a/courgette/streams.cc b/courgette/streams.cc
|
| index df769b1bbf1b7e2809a715b3c58a563ed99d7057..fcac593e9c0af0034b731b77fc964fa1446b96c4 100644
|
| --- a/courgette/streams.cc
|
| +++ b/courgette/streams.cc
|
| @@ -115,10 +115,10 @@ const uint8* Varint::Parse32WithLimit(const uint8* source,
|
| // have the high bit set to indicate more digits.
|
| inline uint8* Varint::Encode32(uint8* destination, uint32 value) {
|
| while (value >= 128) {
|
| - *(destination++) = value | 128;
|
| + *(destination++) = static_cast<uint8>(value) | 128;
|
| value = value >> 7;
|
| }
|
| - *(destination++) = value;
|
| + *(destination++) = static_cast<uint8>(value);
|
| return destination;
|
| }
|
|
|
|
|