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

Unified Diff: net/quic/quic_server.cc

Issue 761863002: Clean up type usage and fix MSVC "truncated value" warnings in net/quic/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More work Created 6 years, 1 month 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/quic_server.cc
diff --git a/net/quic/quic_server.cc b/net/quic/quic_server.cc
index fecb4e51de2ad514c4dbe330948a6ccd979effa4..7b0f45400ec85a67c681577894892805556e01d1 100644
--- a/net/quic/quic_server.cc
+++ b/net/quic/quic_server.cc
@@ -74,7 +74,8 @@ int QuicServer::Listen(const IPEndPoint& address) {
// These send and receive buffer sizes are sized for a single connection,
// because the default usage of QuicServer is as a test server with one or
// two clients. Adjust higher for use with many clients.
- rc = socket->SetReceiveBufferSize(TcpReceiver::kReceiveWindowTCP);
+ rc = socket->SetReceiveBufferSize(
+ static_cast<int32>(TcpReceiver::kReceiveWindowTCP));
if (rc < 0) {
LOG(ERROR) << "SetReceiveBufferSize() failed: " << ErrorToString(rc);
return rc;

Powered by Google App Engine
This is Rietveld 408576698