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

Unified Diff: tools/gn/setup.cc

Issue 265143003: Fix GN Windows size-truncation warning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/setup.cc
diff --git a/tools/gn/setup.cc b/tools/gn/setup.cc
index cb1effaaab1ea3d883c688daaed9f3881af24a76..a3f0dcb2f9aca7f09320cbc17e82396c8a8c1d4e 100644
--- a/tools/gn/setup.cc
+++ b/tools/gn/setup.cc
@@ -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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698