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

Unified Diff: net/quic/quic_protocol.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_received_packet_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
index df0b07b31a0fdc56bdb28648514403c9b5b253b2..98a8d3ba484f39f6faa528fa6bbd5a51ce013fc5 100644
--- a/net/quic/quic_protocol.cc
+++ b/net/quic/quic_protocol.cc
@@ -158,9 +158,9 @@ QuicStreamFrame::QuicStreamFrame(QuicStreamId stream_id,
QuicStreamFrame::~QuicStreamFrame() {}
-uint32 MakeQuicTag(char a, char b, char c, char d) {
- return static_cast<uint32>(a) | static_cast<uint32>(b) << 8 |
- static_cast<uint32>(c) << 16 | static_cast<uint32>(d) << 24;
+uint32_t MakeQuicTag(char a, char b, char c, char d) {
+ return static_cast<uint32_t>(a) | static_cast<uint32_t>(b) << 8 |
+ static_cast<uint32_t>(c) << 16 | static_cast<uint32_t>(d) << 24;
}
bool ContainsQuicTag(const QuicTagVector& tag_vector, QuicTag tag) {
@@ -303,7 +303,7 @@ QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id,
QuicRstStreamErrorCode error_code,
QuicStreamOffset bytes_written)
: stream_id(stream_id), error_code(error_code), byte_offset(bytes_written) {
- DCHECK_LE(error_code, numeric_limits<uint8>::max());
+ DCHECK_LE(error_code, numeric_limits<uint8_t>::max());
}
QuicConnectionCloseFrame::QuicConnectionCloseFrame()
@@ -632,7 +632,7 @@ QuicGoAwayFrame::QuicGoAwayFrame(QuicErrorCode error_code,
: error_code(error_code),
last_good_stream_id(last_good_stream_id),
reason_phrase(reason) {
- DCHECK_LE(error_code, numeric_limits<uint8>::max());
+ DCHECK_LE(error_code, numeric_limits<uint8_t>::max());
}
QuicData::QuicData(const char* buffer, size_t length)
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_received_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698