| 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..b4d207e339b3d7849bec1d35bc0ed6b0de0ccb98 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.
|
| return false;
|
| NPIdentifier* new_array = static_cast<NPIdentifier*>(
|
| std::malloc(sizeof(NPIdentifier) * (*count + 1)));
|
|
|