Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Unified Diff: webkit/plugins/npapi/plugin_host.cc

Issue 14914008: Fix 64 bit compile errors flagged by conversions from size_t to uint32. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698