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

Unified Diff: components/nacl/loader/nacl_ipc_adapter.cc

Issue 777853003: Misc. warning fixes/cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
Index: components/nacl/loader/nacl_ipc_adapter.cc
diff --git a/components/nacl/loader/nacl_ipc_adapter.cc b/components/nacl/loader/nacl_ipc_adapter.cc
index 5d28152366e62b93b8ea2b68b371a675442ff809..571249a0cc00a7a76af5fd1ef7622f38d624dee7 100644
--- a/components/nacl/loader/nacl_ipc_adapter.cc
+++ b/components/nacl/loader/nacl_ipc_adapter.cc
@@ -824,7 +824,7 @@ void NaClIPCAdapter::SaveMessage(const IPC::Message& msg,
header.routing = msg.routing_id();
header.type = msg.type();
header.flags = msg.flags();
- header.num_fds = static_cast<int>(rewritten_msg->desc_count());
+ header.num_fds = static_cast<uint16>(rewritten_msg->desc_count());
Peter Kasting 2014/12/06 00:12:18 What if desc_count() doesn't fit in a uint16? Is
bbudge 2014/12/06 01:30:28 These messages are from the renderer or browser pr
rewritten_msg->SetData(header, msg.payload(), msg.payload_size());
locked_data_.to_be_received_.push(rewritten_msg);

Powered by Google App Engine
This is Rietveld 408576698