diff --git a/tools/versioner/src/Preprocessor.cpp b/tools/versioner/src/Preprocessor.cpp index 757a3922c..a7f289b1f 100644 --- a/tools/versioner/src/Preprocessor.cpp +++ b/tools/versioner/src/Preprocessor.cpp @@ -300,7 +300,7 @@ static void mergeGuards(std::deque& file_lines, GuardMap& guard_map }; 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(); } else { ++current_location.column;