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

Unified Diff: ppapi/cpp/dev/scriptable_object_deprecated.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/dev/ime_input_event_dev.cc ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/scriptable_object_deprecated.cc
diff --git a/ppapi/cpp/dev/scriptable_object_deprecated.cc b/ppapi/cpp/dev/scriptable_object_deprecated.cc
index 1b701cb6651c45c452103083854e0691d6b9904e..19c4738c007ff1877c30853288378eacab7ccbe1 100644
--- a/ppapi/cpp/dev/scriptable_object_deprecated.cc
+++ b/ppapi/cpp/dev/scriptable_object_deprecated.cc
@@ -73,8 +73,8 @@ void GetAllPropertyNames(void* object,
const PPB_Memory_Dev* memory_if = static_cast<const PPB_Memory_Dev*>(
pp::Module::Get()->GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE));
- *properties = static_cast<PP_Var*>(
- memory_if->MemAlloc(sizeof(PP_Var) * props.size()));
+ *properties = static_cast<PP_Var*>(memory_if->MemAlloc(
+ static_cast<uint32_t>(sizeof(PP_Var) * props.size())));
for (size_t i = 0; i < props.size(); ++i)
(*properties)[i] = props[i].Detach();
« no previous file with comments | « ppapi/cpp/dev/ime_input_event_dev.cc ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698