summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
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;