ENH: fix warning on win64

This commit is contained in:
Bill Hoffman 2007-07-26 14:36:06 -04:00
parent d0561a3d29
commit 3f00d3cbc9
2 changed files with 5 additions and 3 deletions

View File

@ -130,7 +130,7 @@ int cmXMLParser::CleanupParser()
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
int cmXMLParser::ParseBuffer(const char* buffer, unsigned int 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, count, 0))

View File

@ -52,7 +52,8 @@ public:
* them. * them.
*/ */
virtual int InitializeParser(); virtual int InitializeParser();
virtual int ParseChunk(const char* inputString, std::string::size_type length); virtual int ParseChunk(const char* inputString,
std::string::size_type length);
virtual int CleanupParser(); virtual int CleanupParser();
protected: protected:
@ -95,7 +96,8 @@ protected:
static int IsSpace(char c); static int IsSpace(char c);
//! Send the given buffer to the XML parser. //! Send the given buffer to the XML parser.
virtual int ParseBuffer(const char* buffer, unsigned int count); virtual int ParseBuffer(const char* buffer,
std::string::size_type length);
//! Send the given c-style string to the XML parser. //! Send the given c-style string to the XML parser.
int ParseBuffer(const char* buffer); int ParseBuffer(const char* buffer);