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

Unified Diff: net/quic/crypto/strike_register.cc

Issue 371213002: Fixes for re-enabling more MSVC level 4 warnings: net/quic/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 6 years, 5 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
Index: net/quic/crypto/strike_register.cc
diff --git a/net/quic/crypto/strike_register.cc b/net/quic/crypto/strike_register.cc
index 9aec6ffb8120dbe7888bb099577179a5cda86c28..8d4707c8f4d204d3f18ab026629a45bb7f9f0217 100644
--- a/net/quic/crypto/strike_register.cc
+++ b/net/quic/crypto/strike_register.cc
@@ -15,7 +15,7 @@ namespace net {
// static
const uint32 StrikeRegister::kExternalNodeSize = 24;
// static
-const uint32 StrikeRegister::kNil = (1 << 31) | 1;
+const uint32 StrikeRegister::kNil = 0x80000001;
Ryan Hamilton 2014/07/08 03:37:08 Out of curiosity, why this change?
Peter Kasting 2014/07/08 06:26:46 1 << 31 is a (negative) signed value (because 1 is
Ryan Hamilton 2014/07/08 18:00:57 AH. In that case, how about 1u << 31? (We end up
Peter Kasting 2014/07/08 18:16:46 That would certainly compile without error. I per
Ryan Hamilton 2014/07/08 18:24:01 Personally, I'd prefer 1u << 31 because when I see
Peter Kasting 2014/07/08 18:44:45 Changed.
// static
const uint32 StrikeRegister::kExternalFlag = 1 << 23;

Powered by Google App Engine
This is Rietveld 408576698