| Index: ipc/ipc_message_utils.cc
|
| diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc
|
| index dbb2572e6683c707ead39035b42ecbb223dc3a64..3670497ae00dd7a5df66f4c153e38a2228bc68b1 100644
|
| --- a/ipc/ipc_message_utils.cc
|
| +++ b/ipc/ipc_message_utils.cc
|
| @@ -452,7 +452,7 @@ void ParamTraits<std::vector<bool> >::Log(const param_type& p, std::string* l) {
|
| void ParamTraits<BrokerableAttachment::AttachmentId>::Write(
|
| Message* m,
|
| const param_type& p) {
|
| - m->WriteBytes(p.nonce, BrokerableAttachment::kNonceSize);
|
| + m->WriteBytes(p.nonce, static_cast<int>(BrokerableAttachment::kNonceSize));
|
| }
|
|
|
| bool ParamTraits<BrokerableAttachment::AttachmentId>::Read(
|
| @@ -460,8 +460,10 @@ bool ParamTraits<BrokerableAttachment::AttachmentId>::Read(
|
| base::PickleIterator* iter,
|
| param_type* r) {
|
| const char* data;
|
| - if (!iter->ReadBytes(&data, BrokerableAttachment::kNonceSize))
|
| + if (!iter->ReadBytes(&data,
|
| + static_cast<int>(BrokerableAttachment::kNonceSize))) {
|
| return false;
|
| + }
|
| memcpy(r->nonce, data, BrokerableAttachment::kNonceSize);
|
| return true;
|
| }
|
|
|