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

Unified Diff: ppapi/proxy/ppp_content_decryptor_private_proxy.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/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_content_decryptor_private_proxy.cc
diff --git a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
index 91ea37014f57e437ff936207059d15f1df8118ac..329714bb79b2224e45ebfd361642dc5164da29f5 100644
--- a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
+++ b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
@@ -544,8 +544,9 @@ void PPP_ContentDecryptor_Private_Proxy::OnMsgSetServerCertificate(
ScopedPPVar::PassRef(),
PpapiGlobals::Get()
->GetVarTracker()
- ->MakeArrayBufferPPVar(server_certificate.size(),
- &server_certificate[0]));
+ ->MakeArrayBufferPPVar(
+ static_cast<uint32_t>(server_certificate.size()),
+ &server_certificate[0]));
CallWhileUnlocked(ppp_decryptor_impl_->SetServerCertificate,
instance,
promise_id,
« no previous file with comments | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698