From 2fb1c43a1128d91cffcbfaadf56a3f5d94b1823d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 20 Jul 2007 13:03:14 -0400 Subject: ENH: fix div by 0 --- Source/CTest/cmCTestCoverageHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; covSumFile.setf(std::ios::fixed, std::ios::floatfield); covSumFile.precision(2); - covSumFile << (percent_coverage/number_files)<< "\n" + covSumFile << SAFEDIV(percent_coverage,number_files)<< "\n" << "\t" << end_time << "\n"; covSumFile << "" << static_cast((cmSystemTools::GetTime() - elapsed_time_start)/6)/10.0 -- cgit v0.12