Index: tools/gn/ninja_target_writer.cc |
diff --git a/tools/gn/ninja_target_writer.cc b/tools/gn/ninja_target_writer.cc |
index e384cd4cfb611d037a6e43d3065c709e2cf9768a..82a022edde4916fdd80932e62d1b3a29e10bc554 100644 |
--- a/tools/gn/ninja_target_writer.cc |
+++ b/tools/gn/ninja_target_writer.cc |
@@ -87,7 +87,8 @@ void NinjaTargetWriter::RunAndWriteFile(const Target* target) { |
} |
std::string contents = file.str(); |
- file_util::WriteFile(ninja_file, contents.c_str(), contents.size()); |
+ file_util::WriteFile(ninja_file, contents.c_str(), |
+ static_cast<int>(contents.size())); |
} |
void NinjaTargetWriter::WriteEnvironment() { |