Fix warning C4267: 'argument' : conversion from 'size_t' to 'int' (issue #1647)

This commit is contained in:
Marshall Greenblatt 2015-07-23 14:29:54 -04:00
parent b7a56d9343
commit 50a9343cec
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ std::string CreateContents(const std::string& message) {
}
void WriteFile(const base::FilePath& path, const std::string& contents) {
int write_ct = base::WriteFile(path, contents.data(), contents.size());
EXPECT_EQ(static_cast<int>(contents.size()), write_ct);
int contents_size = static_cast<int>(contents.size());
int write_ct = base::WriteFile(path, contents.data(), contents_size);
EXPECT_EQ(contents_size, write_ct);
}
CefRefPtr<CefResourceHandler> CreateContentsResourceHandler(