| Index: tools/gn/string_utils.cc
|
| diff --git a/tools/gn/string_utils.cc b/tools/gn/string_utils.cc
|
| index 2812af9d6f85216c8a35f971dac08c5a03b00c2f..60e4e8c16c5cb44fc140edab69457189518fff73 100644
|
| --- a/tools/gn/string_utils.cc
|
| +++ b/tools/gn/string_utils.cc
|
| @@ -18,12 +18,14 @@ Err ErrInsideStringToken(const Token& token, size_t offset, size_t size,
|
| const std::string& msg,
|
| const std::string& help = std::string()) {
|
| // The "+1" is skipping over the " at the beginning of the token.
|
| + int int_offset = static_cast<int>(offset);
|
| Location begin_loc(token.location().file(),
|
| token.location().line_number(),
|
| - token.location().char_offset() + offset + 1);
|
| + token.location().char_offset() + int_offset + 1);
|
| Location end_loc(token.location().file(),
|
| token.location().line_number(),
|
| - token.location().char_offset() + offset + 1 + size);
|
| + token.location().char_offset() + int_offset + 1 +
|
| + static_cast<int>(size));
|
| return Err(LocationRange(begin_loc, end_loc), msg, help);
|
| }
|
|
|
|
|