Commit 50a9343c authored by Marshall Greenblatt's avatar Marshall Greenblatt

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

parent b7a56d93
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment