summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-10 18:36:37 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-10 18:36:37 (GMT)
commit238815fe19ebcd63bee841b69139824698e5fe95 (patch)
tree9aad78b8a9173ea15a9966486a9e9fd65ab688f2 /Source/ctest.cxx
parentf03d370ee70c598b6eaa2f2a352abd9d7ac8ec8a (diff)
downloadCMake-238815fe19ebcd63bee841b69139824698e5fe95.zip
CMake-238815fe19ebcd63bee841b69139824698e5fe95.tar.gz
CMake-238815fe19ebcd63bee841b69139824698e5fe95.tar.bz2
Remove warning
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 27a2bee..3dd6fd8 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -932,8 +932,10 @@ int ctest::CoverageDirectory()
<< "\t\t<Report>" << std::endl;
for ( cc = 0; cc < lines.size(); cc ++ )
{
- cfileoutput << "\t\t<Line Number=\"" << cc << "\" Count=\""
- << cov.m_Lines[cc] << "\">" << lines[cc] << "</Line>" << std::endl;
+ cfileoutput << "\t\t<Line Number=\""
+ << static_cast<int>(cc) << "\" Count=\""
+ << cov.m_Lines[cc] << "\">"
+ << lines[cc] << "</Line>" << std::endl;
}
cfileoutput << "\t\t</Report>\n"
<< "\t</File>" << std::endl;