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

Unified Diff: net/quic/crypto/quic_server_info.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/crypto/quic_server_info.h ('k') | net/quic/crypto/scoped_evp_aead_ctx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_server_info.cc
diff --git a/net/quic/crypto/quic_server_info.cc b/net/quic/crypto/quic_server_info.cc
index 6c6fff906b2e051f40a48575128d22e7cff2f6bc..2627fb48609a6b493bf3ee5ca04f0a70c11f6fba 100644
--- a/net/quic/crypto/quic_server_info.cc
+++ b/net/quic/crypto/quic_server_info.cc
@@ -89,13 +89,13 @@ bool QuicServerInfo::ParseInner(const string& data) {
}
// Read certs.
- uint32 num_certs;
+ uint32_t num_certs;
if (!iter.ReadUInt32(&num_certs)) {
DVLOG(1) << "Malformed num_certs";
return false;
}
- for (uint32 i = 0; i < num_certs; i++) {
+ for (uint32_t i = 0; i < num_certs; i++) {
string cert;
if (!iter.ReadString(&cert)) {
DVLOG(1) << "Malformed cert";
@@ -120,7 +120,7 @@ string QuicServerInfo::SerializeInner() const {
!p.WriteString(state_.server_config) ||
!p.WriteString(state_.source_address_token) ||
!p.WriteString(state_.server_config_sig) ||
- state_.certs.size() > std::numeric_limits<uint32>::max() ||
+ state_.certs.size() > std::numeric_limits<uint32_t>::max() ||
!p.WriteUInt32(state_.certs.size())) {
return string();
}
« no previous file with comments | « net/quic/crypto/quic_server_info.h ('k') | net/quic/crypto/scoped_evp_aead_ctx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698