Index: tools/gn/err.cc |
diff --git a/tools/gn/err.cc b/tools/gn/err.cc |
index 79a629b0c901024712458fda9fbeedec0afb93d4..1ba1a628c2a98206012b74fd416060325e73f366 100644 |
--- a/tools/gn/err.cc |
+++ b/tools/gn/err.cc |
@@ -41,7 +41,7 @@ void FillRangeOnLine(const LocationRange& range, int line_number, |
int end_char; |
if (range.end().line_number() > line_number) |
- end_char = line->size(); // Ending is non-inclusive. |
+ end_char = static_cast<int>(line->size()); // Ending is non-inclusive. |
else |
end_char = range.end().char_offset() - 1; |