summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-07-26 18:36:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-07-26 18:36:06 (GMT)
commit3f00d3cbc9f24b58f2a2b446f6ca630633c1a0c8 (patch)
tree125a8ee4056a29b2a289f18c5c2b7c05b5b47da8
parentd0561a3d29d0b1322248bf837d807869e9a06031 (diff)
downloadCMake-3f00d3cbc9f24b58f2a2b446f6ca630633c1a0c8.zip
CMake-3f00d3cbc9f24b58f2a2b446f6ca630633c1a0c8.tar.gz
CMake-3f00d3cbc9f24b58f2a2b446f6ca630633c1a0c8.tar.bz2
ENH: fix warning on win64
-rw-r--r--Source/cmXMLParser.cxx2
-rw-r--r--Source/cmXMLParser.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmXMLParser.cxx b/Source/cmXMLParser.cxx
index 016514c..e9dca13 100644
--- a/Source/cmXMLParser.cxx
+++ b/Source/cmXMLParser.cxx
@@ -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.
if(!XML_Parse(static_cast<XML_Parser>(this->Parser), buffer, count, 0))
diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h
index 5568920..3580e8c 100644
--- a/Source/cmXMLParser.h
+++ b/Source/cmXMLParser.h
@@ -52,7 +52,8 @@ public:
* them.
*/
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();
protected:
@@ -95,7 +96,8 @@ protected:
static int IsSpace(char c);
//! 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.
int ParseBuffer(const char* buffer);