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

Unified Diff: ppapi/tests/test_memory.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_host_resolver_private.cc ('k') | ppapi/tests/test_network_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_memory.cc
diff --git a/ppapi/tests/test_memory.cc b/ppapi/tests/test_memory.cc
index 90732276879e83415eae588c2f0582c893427007..d4db7c204caf42dd132e45ca7c860e6695e596d2 100644
--- a/ppapi/tests/test_memory.cc
+++ b/ppapi/tests/test_memory.cc
@@ -30,7 +30,7 @@ void TestMemory::RunTests(const std::string& filter) {
std::string TestMemory::TestMemAlloc() {
char* buffer = static_cast<char*>(
- memory_dev_interface_->MemAlloc(kTestBufferSize));
+ memory_dev_interface_->MemAlloc(static_cast<uint32_t>(kTestBufferSize)));
// Touch a couple of locations. Failure will crash the test.
buffer[0] = '1';
buffer[kTestBufferSize - 1] = '1';
« no previous file with comments | « ppapi/tests/test_host_resolver_private.cc ('k') | ppapi/tests/test_network_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698