From f4ac0f8373aeb96aae4cd24359586bf1a18c7f7b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 25 Jul 2007 09:22:19 -0400 Subject: [PATCH] STYLE: fix compiler warning --- Source/cmXMLParser.cxx | 5 +++-- Source/cmXMLParser.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/cmXMLParser.cxx b/Source/cmXMLParser.cxx index 2894090e5..016514c69 100644 --- a/Source/cmXMLParser.cxx +++ b/Source/cmXMLParser.cxx @@ -39,7 +39,7 @@ cmXMLParser::~cmXMLParser() int cmXMLParser::Parse(const char* string) { return (int)this->InitializeParser() && - this->ParseChunk(string, (unsigned int)strlen(string)) && + this->ParseChunk(string, strlen(string)) && this->CleanupParser(); } @@ -84,7 +84,8 @@ int cmXMLParser::InitializeParser() } //---------------------------------------------------------------------------- -int cmXMLParser::ParseChunk(const char* inputString, unsigned int length) +int cmXMLParser::ParseChunk(const char* inputString, + std::string::size_type length) { if ( !this->Parser ) { diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h index 2c34442ce..5568920f5 100644 --- a/Source/cmXMLParser.h +++ b/Source/cmXMLParser.h @@ -52,7 +52,7 @@ public: * them. */ virtual int InitializeParser(); - virtual int ParseChunk(const char* inputString, unsigned int length); + virtual int ParseChunk(const char* inputString, std::string::size_type length); virtual int CleanupParser(); protected: