Commit e8f83087 authored by brettw@chromium.org's avatar brettw@chromium.org

Fix GN Windows size-truncation warning.

TBR=scottmg

Review URL: https://codereview.chromium.org/265143003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268050 0039d316-1c4b-4281-b951-d872f2087c98
parent d23508c2
......@@ -376,8 +376,8 @@ bool Setup::SaveArgsToFile() {
// Notepad which can't handle Unix ones.
ReplaceSubstringsAfterOffset(&contents, 0, "\n", "\r\n");
#endif
if (base::WriteFile(build_arg_file, contents.c_str(), contents.size()) ==
-1) {
if (base::WriteFile(build_arg_file, contents.c_str(),
static_cast<int>(contents.size())) == -1) {
Err(Location(), "Args file could not be written.",
"The file is \"" + FilePathToUTF8(build_arg_file) +
"\"").PrintToStdout();
......
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