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

Unified Diff: net/quic/quic_received_packet_manager.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_received_packet_manager.h ('k') | net/quic/quic_reliable_client_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_received_packet_manager.cc
diff --git a/net/quic/quic_received_packet_manager.cc b/net/quic/quic_received_packet_manager.cc
index 13e9a741022f82713dc8304c0cd805c17f09de57..48cd757cdee8c8eeb4c1f665ff4217301064c3b2 100644
--- a/net/quic/quic_received_packet_manager.cc
+++ b/net/quic/quic_received_packet_manager.cc
@@ -163,7 +163,7 @@ void QuicReceivedPacketManager::RecordPacketReceived(
stats_->max_sequence_reordering =
max(stats_->max_sequence_reordering,
ack_frame_.largest_observed - packet_number);
- int64 reordering_time_us =
+ int64_t reordering_time_us =
receipt_time.Subtract(time_largest_observed_).ToMicroseconds();
stats_->max_time_reordering_us =
max(stats_->max_time_reordering_us, reordering_time_us);
@@ -206,7 +206,7 @@ struct isTooLarge {
// Return true if the packet in p is too different from largest_observed_
// to express.
bool operator()(const std::pair<QuicPacketNumber, QuicTime>& p) const {
- return largest_observed_ - p.first >= numeric_limits<uint8>::max();
+ return largest_observed_ - p.first >= numeric_limits<uint8_t>::max();
}
};
} // namespace
@@ -235,7 +235,7 @@ void QuicReceivedPacketManager::UpdateReceivedPacketInfo(
for (PacketTimeVector::iterator it = ack_frame_.received_packet_times.begin();
it != ack_frame_.received_packet_times.end();) {
if (ack_frame_.largest_observed - it->first >=
- numeric_limits<uint8>::max()) {
+ numeric_limits<uint8_t>::max()) {
it = ack_frame_.received_packet_times.erase(it);
} else {
++it;
« no previous file with comments | « net/quic/quic_received_packet_manager.h ('k') | net/quic/quic_reliable_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698