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

Unified Diff: ppapi/tests/test_websocket.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/tests/test_url_request.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_websocket.cc
diff --git a/ppapi/tests/test_websocket.cc b/ppapi/tests/test_websocket.cc
index e0a54aa6aa9c9821d7dc3739e1948a675a3cceb0..91046f2599b909e98d2781cbce1c517f420c4aa1 100644
--- a/ppapi/tests/test_websocket.cc
+++ b/ppapi/tests/test_websocket.cc
@@ -259,11 +259,13 @@ std::string TestWebSocket::GetFullURL(const char* url) {
}
PP_Var TestWebSocket::CreateVarString(const std::string& string) {
- return var_interface_->VarFromUtf8(string.c_str(), string.size());
+ return var_interface_->VarFromUtf8(string.c_str(),
+ static_cast<uint32_t>(string.size()));
}
PP_Var TestWebSocket::CreateVarBinary(const std::vector<uint8_t>& binary) {
- PP_Var var = arraybuffer_interface_->Create(binary.size());
+ PP_Var var =
+ arraybuffer_interface_->Create(static_cast<uint32_t>(binary.size()));
uint8_t* var_data = static_cast<uint8_t*>(arraybuffer_interface_->Map(var));
std::copy(binary.begin(), binary.end(), var_data);
return var;
« no previous file with comments | « ppapi/tests/test_url_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698