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

Unified Diff: ppapi/proxy/websocket_resource_unittest.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/websocket_resource.cc ('k') | ppapi/shared_impl/array_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/websocket_resource_unittest.cc
diff --git a/ppapi/proxy/websocket_resource_unittest.cc b/ppapi/proxy/websocket_resource_unittest.cc
index 8c300ce7727fada3edf615af461e5cac3eeb8a92..f65c2a59223d4ce449db523439bd46b70ab5aca3 100644
--- a/ppapi/proxy/websocket_resource_unittest.cc
+++ b/ppapi/proxy/websocket_resource_unittest.cc
@@ -47,7 +47,8 @@ PP_CompletionCallback MakeCallback() {
PP_Var MakeStringVar(const std::string& string) {
if (!ppb_var_)
ppb_var_ = ppapi::PPB_Var_Shared::GetVarInterface1_2();
- return ppb_var_->VarFromUtf8(string.c_str(), string.length());
+ return ppb_var_->VarFromUtf8(string.c_str(),
+ static_cast<uint32_t>(string.length()));
}
} // namespace
« no previous file with comments | « ppapi/proxy/websocket_resource.cc ('k') | ppapi/shared_impl/array_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698