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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/source_address_token.h ('k') | net/quic/crypto/strike_register.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/source_address_token.cc
diff --git a/net/quic/crypto/source_address_token.cc b/net/quic/crypto/source_address_token.cc
index 5faedaa69360bc555c8da0c2eee521f26c3e8df9..5c1877a298bec2d3801a69d49d299c19684e4d6b 100644
--- a/net/quic/crypto/source_address_token.cc
+++ b/net/quic/crypto/source_address_token.cc
@@ -20,10 +20,10 @@ SourceAddressToken::~SourceAddressToken() {
string SourceAddressToken::SerializeAsString() const {
string out;
- out.push_back(ip_.size());
+ out.push_back(static_cast<char>(ip_.size()));
out.append(ip_);
string time_str = base::Int64ToString(timestamp_);
- out.push_back(time_str.size());
+ out.push_back(static_cast<char>(time_str.size()));
out.append(time_str);
// TODO(rtenneti): Implement serialization of optional CachedNetworkParameters
// when they are used.
« no previous file with comments | « net/quic/crypto/source_address_token.h ('k') | net/quic/crypto/strike_register.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698