Merge "Fix out-of-bounds deque access causing build failure."

This commit is contained in:
Treehugger Robot 2017-08-18 01:55:39 +00:00 committed by Gerrit Code Review
commit ad5c4e3596
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ static void mergeGuards(std::deque<std::string>& file_lines, GuardMap& guard_map
};
auto nextCol = [&file_lines, &current_location, &nextLine]() {
if (current_location.column == file_lines[current_location.column - 1].length()) {
if (current_location.column == file_lines[current_location.line - 1].length()) {
nextLine();
} else {
++current_location.column;