Index: webkit/plugins/ppapi/message_channel.cc |
diff --git a/webkit/plugins/ppapi/message_channel.cc b/webkit/plugins/ppapi/message_channel.cc |
index 4a0165fd49ae20e2c9836deeb42326602530b029..5a9139e1e7f031db19f9ab18cf91744f1e4196d8 100644 |
--- a/webkit/plugins/ppapi/message_channel.cc |
+++ b/webkit/plugins/ppapi/message_channel.cc |
@@ -284,7 +284,7 @@ bool MessageChannelEnumerate(NPObject *np_obj, NPIdentifier **value, |
if (success) { |
// Add postMessage to the list and return it. |
if (std::numeric_limits<size_t>::max() / sizeof(NPIdentifier) <= |
- (*count + 1)) |
+ static_cast<size_t>(*count + 1)) // Else, "always false" x64 warning. |
piman
2013/04/18 23:11:36
paranoid in me: static_cast<size_t>(*count) + 1 ?
Nico
2013/04/18 23:13:52
Done.
|
return false; |
NPIdentifier* new_array = static_cast<NPIdentifier*>( |
std::malloc(sizeof(NPIdentifier) * (*count + 1))); |