diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-07-20 17:03:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-07-20 17:03:14 (GMT) |
commit | 2fb1c43a1128d91cffcbfaadf56a3f5d94b1823d (patch) | |
tree | a0be24274a2a2860e8f6a34f249e85fa66b3729e /Source/CTest | |
parent | a6c86cbd04b8f7a0deaa00824306c47cabc0a4d8 (diff) | |
download | CMake-2fb1c43a1128d91cffcbfaadf56a3f5d94b1823d.zip CMake-2fb1c43a1128d91cffcbfaadf56a3f5d94b1823d.tar.gz CMake-2fb1c43a1128d91cffcbfaadf56a3f5d94b1823d.tar.bz2 |
ENH: fix div by 0
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 2bfe6a3..86ec69a 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -1549,7 +1549,7 @@ int cmCTestCoverageHandler::RunBullseyeSourceSummary( << "\t<PercentCoverage>"; covSumFile.setf(std::ios::fixed, std::ios::floatfield); covSumFile.precision(2); - covSumFile << (percent_coverage/number_files)<< "</PercentCoverage>\n" + covSumFile << SAFEDIV(percent_coverage,number_files)<< "</PercentCoverage>\n" << "\t<EndDateTime>" << end_time << "</EndDateTime>\n"; covSumFile << "<ElapsedMinutes>" << static_cast<int>((cmSystemTools::GetTime() - elapsed_time_start)/6)/10.0 |