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

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp.cc

Issue 1485023003: Misc truncation fixes for gn builds with VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes to four more components/content files 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
Index: content/browser/renderer_host/p2p/socket_host_tcp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.cc b/content/browser/renderer_host/p2p/socket_host_tcp.cc
index cb4d60de69a4270759c7ff086c364589a98d5de0..cb6d3948e11b064334b4ddf67c14537265038ef4 100644
--- a/content/browser/renderer_host/p2p/socket_host_tcp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_tcp.cc
@@ -522,7 +522,8 @@ void P2PSocketHostTcp::DoSend(const net::IPEndPoint& to,
int size = kPacketHeaderSize + data.size();
scoped_refptr<net::DrainableIOBuffer> buffer =
new net::DrainableIOBuffer(new net::IOBuffer(size), size);
- *reinterpret_cast<uint16*>(buffer->data()) = base::HostToNet16(data.size());
+ *reinterpret_cast<uint16*>(buffer->data()) =
+ base::HostToNet16(static_cast<uint16>(data.size()));
memcpy(buffer->data() + kPacketHeaderSize, &data[0], data.size());
packet_processing_helpers::ApplyPacketOptions(
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.cc ('k') | content/browser/renderer_host/p2p/socket_host_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698