summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLParser.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-07-31 13:12:38 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-31 13:34:55 (GMT)
commit72f57845d3ad8cd401ca1c847ae8dd890d40a0b8 (patch)
tree4bf9ae7d686a7e53b1a71fae27a24b486fc1d811 /Source/cmXMLParser.cxx
parent34257b0dd4b035b1e237b76e8b11b82f8015a3c7 (diff)
downloadCMake-72f57845d3ad8cd401ca1c847ae8dd890d40a0b8.zip
CMake-72f57845d3ad8cd401ca1c847ae8dd890d40a0b8.tar.gz
CMake-72f57845d3ad8cd401ca1c847ae8dd890d40a0b8.tar.bz2
cmXMLParser: Avoid -Wconversion warning
Add an explicit cast since we expect the conversion to be well within range.
Diffstat (limited to 'Source/cmXMLParser.cxx')
-rw-r--r--Source/cmXMLParser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmXMLParser.cxx b/Source/cmXMLParser.cxx
index 920e3a5..4c6c35a 100644
--- a/Source/cmXMLParser.cxx
+++ b/Source/cmXMLParser.cxx
@@ -186,8 +186,8 @@ void cmXMLParserCharacterDataHandler(void* parser, const char* data,
void cmXMLParser::ReportXmlParseError()
{
XML_Parser parser = static_cast<XML_Parser>(this->Parser);
- this->ReportError(XML_GetCurrentLineNumber(parser),
- XML_GetCurrentColumnNumber(parser),
+ this->ReportError(static_cast<int>(XML_GetCurrentLineNumber(parser)),
+ static_cast<int>(XML_GetCurrentColumnNumber(parser)),
XML_ErrorString(XML_GetErrorCode(parser)));
}