Index: webkit/plugins/npapi/plugin_host.cc |
=================================================================== |
--- webkit/plugins/npapi/plugin_host.cc (revision 199497) |
+++ webkit/plugins/npapi/plugin_host.cc (working copy) |
@@ -482,7 +482,7 @@ |
return NPERR_FILE_NOT_FOUND; |
buf = post_file_contents.c_str(); |
- len = post_file_contents.size(); |
+ len = static_cast<uint32_t>(post_file_contents.size()); |
} |
// The post data sent by a plugin contains both headers |
@@ -988,9 +988,10 @@ |
// Allocate this using the NPAPI allocator. The plugin will call |
// NPN_Free to free this. |
- *value = static_cast<char*>(NPN_MemAlloc(result.length() + 1)); |
+ *value = static_cast<char*>( |
+ NPN_MemAlloc(static_cast<uint32_t>(result.length()) + 1)); |
base::strlcpy(*value, result.c_str(), result.length() + 1); |
- *len = result.length(); |
+ *len = static_cast<uint32_t>(result.length()); |
return NPERR_NO_ERROR; |
} |