Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: courgette/streams.cc

Issue 613893002: Fix more MSVC warnings, courgette/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« courgette/encoded_program.cc ('K') | « courgette/encoded_program.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« courgette/encoded_program.cc ('K') | « courgette/encoded_program.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698