Index: ipc/ipc_message_utils.cc |
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc |
index 4cc84949d4f3a147e1770db029c19db608d44fa3..32836d9dfada99905f3ca2146c4374703e0cdcb8 100644 |
--- a/ipc/ipc_message_utils.cc |
+++ b/ipc/ipc_message_utils.cc |
@@ -431,7 +431,7 @@ void ParamTraits<std::vector<unsigned char> >::Log(const param_type& p, |
void ParamTraits<std::vector<bool> >::Write(Message* m, const param_type& p) { |
WriteParam(m, static_cast<int>(p.size())); |
for (size_t i = 0; i < p.size(); i++) |
- WriteParam(m, p[i]); |
+ WriteParam(m, (bool)p[i]); |
} |
bool ParamTraits<std::vector<bool> >::Read(const Message* m, |
@@ -455,7 +455,7 @@ void ParamTraits<std::vector<bool> >::Log(const param_type& p, std::string* l) { |
for (size_t i = 0; i < p.size(); ++i) { |
if (i != 0) |
l->push_back(' '); |
- LogParam((p[i]), l); |
+ LogParam(((bool)p[i]), l); |
} |
} |