diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 23:19:56 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 23:19:56 +0000 |
commit | a0cec034916b9caeaa4512f71d733490948d2c29 (patch) | |
tree | 540dfe9598f053916d5ad494e3337f17ec7e25ba | |
parent | 97af9a7931522ae5129ca0e44df0c974c803e7b3 (diff) | |
download | chromium_src-a0cec034916b9caeaa4512f71d733490948d2c29.zip chromium_src-a0cec034916b9caeaa4512f71d733490948d2c29.tar.gz chromium_src-a0cec034916b9caeaa4512f71d733490948d2c29.tar.bz2 |
Fix 64 bit compile errors flagged by conversions from size_t to uint32.
Using static_cast for now.
BUG=237249
TBR=jam
Review URL: https://codereview.chromium.org/14914008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199569 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/plugins/npapi/plugin_host.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/plugins/npapi/plugin_host.cc b/webkit/plugins/npapi/plugin_host.cc index 3bb648d..9ca1edd 100644 --- a/webkit/plugins/npapi/plugin_host.cc +++ b/webkit/plugins/npapi/plugin_host.cc @@ -482,7 +482,7 @@ static NPError PostURLNotify(NPP id, 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 @@ NPError NPN_GetValueForURL(NPP id, // 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; } |