Merge "Fix out-of-bounds deque access causing build failure."
This commit is contained in:
commit
ad5c4e3596
|
@ -300,7 +300,7 @@ static void mergeGuards(std::deque<std::string>& file_lines, GuardMap& guard_map
|
||||||
};
|
};
|
||||||
|
|
||||||
auto nextCol = [&file_lines, ¤t_location, &nextLine]() {
|
auto nextCol = [&file_lines, ¤t_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();
|
nextLine();
|
||||||
} else {
|
} else {
|
||||||
++current_location.column;
|
++current_location.column;
|
||||||
|
|
Loading…
Reference in New Issue