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

Unified Diff: ppapi/cpp/dev/file_chooser_dev.cc

Issue 915403003: Enable size_t to int truncation warnings in PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ppapi_unittests win x64 Created 5 years, 10 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 | « ppapi/BUILD.gn ('k') | ppapi/cpp/dev/ime_input_event_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/file_chooser_dev.cc
diff --git a/ppapi/cpp/dev/file_chooser_dev.cc b/ppapi/cpp/dev/file_chooser_dev.cc
index b7124a1044ba7ec2dc9dfc4841ec01a0449f80a3..2efb346dbeeafb87f5205231f019b17141d545d7 100644
--- a/ppapi/cpp/dev/file_chooser_dev.cc
+++ b/ppapi/cpp/dev/file_chooser_dev.cc
@@ -82,7 +82,7 @@ void FileChooser_Dev::CallbackConverter(void* user_data, int32_t result) {
// number of items is 0.
void* output_buf = data->output.GetDataBuffer(
data->output.user_data,
- selected_files.size(), sizeof(PP_Resource));
+ static_cast<uint32_t>(selected_files.size()), sizeof(PP_Resource));
if (output_buf) {
if (!selected_files.empty()) {
memcpy(output_buf, &selected_files[0],
« no previous file with comments | « ppapi/BUILD.gn ('k') | ppapi/cpp/dev/ime_input_event_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698