diff options
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 9d714ad..b21a7bc 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -442,9 +442,9 @@ int cmCTestCoverageHandler::ProcessHandler() // Read the line number starting at the 10th character of the gcov output line std::string lineNumber = nl.substr(10, 5); - int line = atoi(lineNumber.c_str()); + int lineIdx = atoi(lineNumber.c_str()); - (*vec)[line] += cov; + (*vec)[lineIdx] += cov; } } actualSourceFile = ""; |