STYLE: fix warning

This commit is contained in:
Bill Hoffman 2007-07-30 21:38:50 -04:00
parent 220fe4f3ce
commit bc2accc65e
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ int cmXMLParser::CleanupParser()
int cmXMLParser::ParseBuffer(const char* buffer, std::string::size_type count) int cmXMLParser::ParseBuffer(const char* buffer, std::string::size_type count)
{ {
// Pass the buffer to the expat XML parser. // Pass the buffer to the expat XML parser.
if(!XML_Parse(static_cast<XML_Parser>(this->Parser), buffer, count, 0)) if(!XML_Parse(static_cast<XML_Parser>(this->Parser), buffer,
static_cast<int>(count), 0))
{ {
this->ReportXmlParseError(); this->ReportXmlParseError();
return 0; return 0;