Index: tools/gn/standard_out.cc |
diff --git a/tools/gn/standard_out.cc b/tools/gn/standard_out.cc |
index 0dfa96d3df66958996422306ee3049a138ae21ba..ac15435a12185f108d23bfa742741e60791fbbba 100644 |
--- a/tools/gn/standard_out.cc |
+++ b/tools/gn/standard_out.cc |
@@ -74,7 +74,8 @@ void OutputString(const std::string& output, TextDecoration dec) { |
} |
DWORD written = 0; |
- ::WriteFile(hstdout, output.c_str(), output.size(), &written, NULL); |
+ ::WriteFile(hstdout, output.c_str(), static_cast<DWORD>(output.size()), |
+ &written, NULL); |
if (is_console) |
::SetConsoleTextAttribute(hstdout, default_attributes); |