cmXMLParser: Avoid -Wconversion warning

Add an explicit cast since we expect the conversion to be well within
range.
This commit is contained in:
Brad King 2018-07-31 09:12:38 -04:00
parent 34257b0dd4
commit 72f57845d3

View File

@ -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)));
}