Index: tools/gn/trace.cc |
diff --git a/tools/gn/trace.cc b/tools/gn/trace.cc |
index 34944fd5e25fc72344dedb338fddd67d4e794755..429cc71f0f430f91e7ff130253ec86743cedb971 100644 |
--- a/tools/gn/trace.cc |
+++ b/tools/gn/trace.cc |
@@ -271,5 +271,6 @@ void SaveTraces(const base::FilePath& file_name) { |
out << "]}"; |
std::string out_str = out.str(); |
- file_util::WriteFile(file_name, out_str.data(), out_str.size()); |
+ file_util::WriteFile(file_name, out_str.data(), |
+ static_cast<int>(out_str.size())); |
} |