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

Unified Diff: ppapi/cpp/private/content_decryptor_private.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/cpp/input_event.cc ('k') | ppapi/cpp/private/flash_clipboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/content_decryptor_private.cc
diff --git a/ppapi/cpp/private/content_decryptor_private.cc b/ppapi/cpp/private/content_decryptor_private.cc
index 76dc2f33c04b4f533ebf6aeb44d629c48c81314a..1e2666122e174597ac98c813d5d7f33676c2056c 100644
--- a/ppapi/cpp/private/content_decryptor_private.cc
+++ b/ppapi/cpp/private/content_decryptor_private.cc
@@ -329,7 +329,8 @@ void ContentDecryptor_Private::SessionKeysChange(
pp::Var session_id_var(session_id);
get_interface<PPB_ContentDecryptor_Private>()->SessionKeysChange(
associated_instance_.pp_instance(), session_id_var.pp_var(),
- PP_FromBool(has_additional_usable_key), key_information.size(),
+ PP_FromBool(has_additional_usable_key),
+ static_cast<uint32_t>(key_information.size()),
key_information.empty() ? NULL : &key_information[0]);
}
}
« no previous file with comments | « ppapi/cpp/input_event.cc ('k') | ppapi/cpp/private/flash_clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698