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

Unified Diff: ppapi/tests/test_flash_file.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_flash_clipboard.cc ('k') | ppapi/tests/test_host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_flash_file.cc
diff --git a/ppapi/tests/test_flash_file.cc b/ppapi/tests/test_flash_file.cc
index 8e8db306f3f3eadbe2765331bfb35768ed420555..b252940485a68fa1ed81f4e4f38521924ca7e9ed 100644
--- a/ppapi/tests/test_flash_file.cc
+++ b/ppapi/tests/test_flash_file.cc
@@ -36,7 +36,8 @@ void CloseFileHandle(PP_FileHandle file_handle) {
bool WriteFile(PP_FileHandle file_handle, const std::string& contents) {
#if defined(PPAPI_OS_WIN)
DWORD bytes_written = 0;
- BOOL result = ::WriteFile(file_handle, contents.c_str(), contents.size(),
+ BOOL result = ::WriteFile(file_handle, contents.c_str(),
+ static_cast<DWORD>(contents.size()),
&bytes_written, NULL);
return result && bytes_written == static_cast<DWORD>(contents.size());
#else
« no previous file with comments | « ppapi/tests/test_flash_clipboard.cc ('k') | ppapi/tests/test_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698